PHP 클래스 Services_Hoptoad, php-hoptoad-notifier

저자: Till Klampaeckel ([email protected])
파일 보기 프로젝트 열기: rich/php-hoptoad-notifier 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$apiKey mixed
$client
$environment string

보호된 프로퍼티들

프로퍼티 타입 설명
$error_class
$file
$line
$message
$reportESTRICT boolean Report E_STRICT
$timeout integer Timeout for cUrl.
$trace

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
handleErrorResponse ( mixed $code ) : void

메소드 상세

__construct() 공개 메소드

Initialize the Hoptad client
저자: Rich Cavanaugh
public __construct ( string $apiKey, string $environment = 'production', string $client = 'pear', string $reportESTRICT = false, integer $timeout = 2 ) : void
$apiKey string
$environment string
$client string
$reportESTRICT string
$timeout integer
리턴 void

action() 공개 메소드

action
저자: Scott Woods
public action ( ) : mixed
리턴 mixed

addXmlBacktrace() 공개 메소드

Add a Hoptoad backtrace to the XML
저자: Rich Cavanaugh
public addXmlBacktrace ( $parent ) : void
리턴 void

addXmlVars() 공개 메소드

Add a Hoptoad var block to the XML
저자: Rich Cavanaugh
public addXmlVars ( $parent, $key, $source ) : void
리턴 void

buildXmlNotice() 공개 메소드

Build up the XML to post according to the documentation at: http://help.hoptoadapp.com/faqs/api-2/notifier-api-v2
저자: Rich Cavanaugh
public buildXmlNotice ( ) : string
리턴 string

cgi_data() 공개 메소드

cgi_data
저자: Scott Woods
public cgi_data ( ) : array
리턴 array

component() 공개 메소드

component
저자: Scott Woods
public component ( ) : mixed
리턴 mixed

curlRequest() 공개 메소드

Send the request to Hoptoad using Curl
저자: Rich Cavanaugh
public curlRequest ( $url, $headers, $body ) : integer
리턴 integer

environment() 공개 메소드

environment
저자: Rich Cavanaugh
public environment ( ) : string
리턴 string

errorHandler() 공개 메소드

Handle a php error
저자: Rich Cavanaugh
public errorHandler ( string $code, string $message, string $file, string $line ) : void
$code string
$message string
$file string
$line string
리턴 void

exceptionHandler() 공개 메소드

Handle a raised exception
저자: Rich Cavanaugh
public exceptionHandler ( Exception $exception ) : void
$exception Exception
리턴 void

handleErrorResponse() 보호된 메소드

protected handleErrorResponse ( mixed $code ) : void
$code mixed The HTTP status code from Hoptoad.
리턴 void

installHandlers() 공개 정적인 메소드

Initialize the chosen notifier and install the error and exception handlers that connect to Hoptoad
저자: Rich Cavanaugh
public static installHandlers ( $apiKey = NULL, $environment = NULL, $client = NULL, $class = 'Services_Hoptoad' ) : void
리턴 void

installNotifierHandlers() 공개 메소드

Hook's this notifier to PHP error and exception handlers
저자: Rich Cavanaugh
public installNotifierHandlers ( ) : void
리턴 void

notify() 공개 메소드

Pass the error and environment data on to Hoptoad
저자: Rich Cavanaugh
public notify ( mixed $error_class, string $message, string $file, string $line, array $trace, $component = NULL )
$error_class mixed
$message string
$file string
$line string
$trace array

params() 공개 메소드

params
저자: Scott Woods
public params ( ) : array
리턴 array

pearRequest() 공개 메소드

Send the request to Hoptoad using PEAR
저자: Rich Cavanaugh
public pearRequest ( $url, $headers, $body ) : integer
리턴 integer

project_root() 공개 메소드

project_root
저자: Scott Woods
public project_root ( ) : string
리턴 string

request_uri() 공개 메소드

get the request uri
저자: Scott Woods
public request_uri ( ) : string
리턴 string

session() 공개 메소드

session
저자: Scott Woods
public session ( ) : array
리턴 array

setParamsForNotify() 공개 메소드

Set the values to be used for the next notice sent to Hoptoad
저자: Rich Cavanaugh
public setParamsForNotify ( $error_class, $message, $file, $line, $trace, $component = NULL ) : void
리턴 void

setup() 공개 메소드

A method meant specifically for subclasses to override so they don't need to handle the constructor
저자: Rich Cavanaugh
public setup ( ) : void
리턴 void

zendRequest() 공개 메소드

Send the request to Hoptoad using Zend
저자: Rich Cavanaugh
public zendRequest ( $url, $headers, $body ) : integer
리턴 integer

프로퍼티 상세

$apiKey 공개적으로 프로퍼티

public mixed $apiKey
리턴 mixed

$client 공개적으로 프로퍼티

public $client

$environment 공개적으로 프로퍼티

public string $environment
리턴 string

$error_class 보호되어 있는 프로퍼티

protected $error_class

$file 보호되어 있는 프로퍼티

protected $file

$line 보호되어 있는 프로퍼티

protected $line

$message 보호되어 있는 프로퍼티

protected $message

$reportESTRICT 보호되어 있는 프로퍼티

Report E_STRICT
protected bool $reportESTRICT
리턴 boolean

$timeout 보호되어 있는 프로퍼티

Timeout for cUrl.
protected int $timeout
리턴 integer

$trace 보호되어 있는 프로퍼티

protected $trace