Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 418 Rev 3473
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::__construct($message, $code, $mode, $options, $userinfo);
Line 787... Line 787...
787
        }
787
        }
Line 788... Line 788...
788
    }
788
    }
789
 
789
 
790
} else {
790
} else {
791
 
791
 
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
Line 796... Line 796...
796
    {
796
    {
797
        function Services_JSON_Error($message = 'unknown error', $code = null,
797
        function __construct($message = 'unknown error', $code = null,