function cmfcClassesCore::isError in Calendar Systems 5
Tell whether a value is a PEAR error.
@access public
Parameters
mixed $data the value to test:
int $code if $data is an error object, return true: only if $code is a string and $obj->getMessage() == $code or $code is an integer and $obj->getCode() == $code
Return value
bool true if parameter is an error
Overrides PEAR::isError
File
- calendar/
lib/ classesCore.class.inc.php, line 243
Class
- cmfcClassesCore
- all cmf classes inherit from this class
Code
function isError($obj, $code = null) {
return PEAR::isError($obj, $code);
}