{
$this->use = $use;
}
-
+
private static $mHavePear = null;
/**
* Returns cached result of class_exists('pear'), to avoid calling AutoLoader numerous times
return $this->encode2($var);
}
- /**
+ /**
* encodes an arbitrary variable into JSON format
*
* @param $var Mixed: any number, boolean, string, array, or object to be encoded.
/**
* @todo Ultimately, this should just call PEAR::isError()
+ * @return bool
*/
function isError($data, $code = null)
{
function Services_JSON_Error($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
{
+ $this->message = $message;
+ }
+ function __toString()
+ {
+ return $this->message;
}
}
}