Logo Search packages:      
Sourcecode: yui version File versions  Download package

Services_JSON::isError ( data,
code = null 
)

Todo:
Ultimately, this should just call PEAR::isError()

Definition at line 768 of file JSON.php.

Referenced by encode(), and name_value().

    {
        if (class_exists('pear')) {
            return PEAR::isError($data, $code);
        } elseif (is_object($data) && (get_class($data) == 'services_json_error' ||
                                 is_subclass_of($data, 'services_json_error'))) {
            return true;
        }

        return false;
    }


Generated by  Doxygen 1.6.0   Back to index