메소드 |
설명 |
|
__construct ( string $apiKey, string $environment = 'production', string $client = 'pear', string $reportESTRICT = false, integer $timeout = 2 ) : void |
Initialize the Hoptad client |
|
action ( ) : mixed |
action |
|
addXmlBacktrace ( $parent ) : void |
Add a Hoptoad backtrace to the XML |
|
addXmlVars ( $parent, $key, $source ) : void |
Add a Hoptoad var block to the XML |
|
buildXmlNotice ( ) : string |
Build up the XML to post according to the documentation at:
http://help.hoptoadapp.com/faqs/api-2/notifier-api-v2 |
|
cgi_data ( ) : array |
cgi_data |
|
component ( ) : mixed |
component |
|
curlRequest ( $url, $headers, $body ) : integer |
Send the request to Hoptoad using Curl |
|
environment ( ) : string |
environment |
|
errorHandler ( string $code, string $message, string $file, string $line ) : void |
Handle a php error |
|
exceptionHandler ( Exception $exception ) : void |
Handle a raised exception |
|
installHandlers ( $apiKey = NULL, $environment = NULL, $client = NULL, $class = 'Services_Hoptoad' ) : void |
Initialize the chosen notifier and install the error
and exception handlers that connect to Hoptoad |
|
installNotifierHandlers ( ) : void |
Hook's this notifier to PHP error and exception handlers |
|
notify ( mixed $error_class, string $message, string $file, string $line, array $trace, $component = NULL ) |
Pass the error and environment data on to Hoptoad |
|
params ( ) : array |
params |
|
pearRequest ( $url, $headers, $body ) : integer |
Send the request to Hoptoad using PEAR |
|
project_root ( ) : string |
project_root |
|
request_uri ( ) : string |
get the request uri |
|
session ( ) : array |
session |
|
setParamsForNotify ( $error_class, $message, $file, $line, $trace, $component = NULL ) : void |
Set the values to be used for the next notice sent to Hoptoad |
|
setup ( ) : void |
A method meant specifically for subclasses to override so they don't need
to handle the constructor |
|
zendRequest ( $url, $headers, $body ) : integer |
Send the request to Hoptoad using Zend |
|