function Services_JSON::isError in Album Photos 6.2
@todo Ultimately, this should just call PEAR::isError()
2 calls to Services_JSON::isError()
- Services_JSON::encode in php/
json-php4.php - encodes an arbitrary variable into JSON format
- Services_JSON::name_value in php/
json-php4.php - array-walking function for use in generating JSON-formatted name-value pairs
File
- php/
json-php4.php, line 765
Class
- Services_JSON
- Converts to and from JSON format.
Code
function isError($data, $code = null) {
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;
}