PHP Class Piwik\Tracker\Response

Afficher le fichier Open project: piwik/piwik Class Usage Examples

Méthodes publiques

Méthode 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 )

Méthodes protégées

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

Private Methods

Méthode Description
getOutputBuffer ( )
isHttpGetRequest ( )
outputAccessControlHeaders ( )
outputApiResponse ( Piwik\Tracker $tracker )
outputTransparentGif ( )

Method Details

getMessageFromException() protected méthode

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

getOutput() public méthode

public getOutput ( )

hasAlreadyPrintedOutput() protected méthode

protected hasAlreadyPrintedOutput ( )

init() public méthode

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

logExceptionToErrorLog() protected méthode

protected logExceptionToErrorLog ( $e )

outputException() public méthode

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 méthode

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