PHP Class Piwik\Tracker\Response

Show file Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
getOutput ( )
init ( Piwik\Tracker $tracker )
outputException ( Piwik\Tracker $tracker, Exception $e, integer $statusCode ) Echos an error message & other information, then exits.
outputResponse ( Piwik\Tracker $tracker )

Protected Methods

Method Description
getMessageFromException ( Exception $e ) : string Gets the error message to output when a tracking request fails.
hasAlreadyPrintedOutput ( )
logExceptionToErrorLog ( $e )

Private Methods

Method Description
getOutputBuffer ( )
isHttpGetRequest ( )
outputAccessControlHeaders ( )
outputApiResponse ( Piwik\Tracker $tracker )
outputTransparentGif ( )

Method Details

getMessageFromException() protected method

Gets the error message to output when a tracking request fails.
protected getMessageFromException ( Exception $e ) : string
$e Exception
return string

getOutput() public method

public getOutput ( )

hasAlreadyPrintedOutput() protected method

protected hasAlreadyPrintedOutput ( )

init() public method

public init ( Piwik\Tracker $tracker )
$tracker Piwik\Tracker

logExceptionToErrorLog() protected method

protected logExceptionToErrorLog ( $e )

outputException() public method

Echos an error message & other information, then exits.
public outputException ( Piwik\Tracker $tracker, Exception $e, integer $statusCode )
$tracker Piwik\Tracker
$e Exception
$statusCode integer eg 500

outputResponse() public method

public outputResponse ( Piwik\Tracker $tracker )
$tracker Piwik\Tracker