Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 365 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 365 Rev 1272
Line 128... Line 128...
128
    *                                   appear as NULL instead of throwing errors.
128
    *                                   appear as NULL instead of throwing errors.
129
    *                                   By default, a deeply-nested resource will
129
    *                                   By default, a deeply-nested resource will
130
    *                                   bubble up with an error, so all return values
130
    *                                   bubble up with an error, so all return values
131
    *                                   from encode() should be checked with isError()
131
    *                                   from encode() should be checked with isError()
132
    */
132
    */
133
    function Services_JSON($use = 0)
133
    function __construct($use = 0)
134
    {
134
    {
135
        $this->use = $use;
135
        $this->use = $use;
136
    }
136
    }
Line 137... Line 137...
137
 
137
 
Line 778... Line 778...
778
 
778
 
Line 779... Line 779...
779
if (class_exists('PEAR_Error')) {
779
if (class_exists('PEAR_Error')) {
780
 
780
 
781
    class Services_JSON_Error extends PEAR_Error
781
    class Services_JSON_Error extends PEAR_Error
782
    {
782
    {
783
        function Services_JSON_Error($message = 'unknown error', $code = null,
783
        function __construct($message = 'unknown error', $code = null,
784
                                     $mode = null, $options = null, $userinfo = null)
784
                                     $mode = null, $options = null, $userinfo = null)
785
        {
785
        {
786
            parent::PEAR_Error($message, $code, $mode, $options, $userinfo);
786
            parent::PEAR_Error($message, $code, $mode, $options, $userinfo);
Line 792... Line 792...
792
    /**
792
    /**
793
     * @todo Ultimately, this class shall be descended from PEAR_Error
793
     * @todo Ultimately, this class shall be descended from PEAR_Error
794
     */
794
     */
795
    class Services_JSON_Error
795
    class Services_JSON_Error
796
    {
796
    {
797
        function Services_JSON_Error($message = 'unknown error', $code = null,
797
        function __construct($message = 'unknown error', $code = null,
798
                                     $mode = null, $options = null, $userinfo = null)
798
                                     $mode = null, $options = null, $userinfo = null)
799
        {
799
        {
Line 800... Line 800...
800
 
800
 
801
        }
801
        }