PHP Class Piwik\API\ApiRenderer

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

Protected Properties

Свойство Type Description
$request

Méthodes publiques

Méthode Description
__construct ( $request )
factory ( string $format, array $request ) : ApiRenderer
renderArray ( $array )
renderDataTable ( $dataTable )
renderException ( $message, Exceptio\Exception | Throwable $exception ) : mixed
renderObject ( $object )
renderResource ( $resource )
renderScalar ( $scalar )
renderSuccess ( $message )
sendHeader ( )

Méthodes protégées

Méthode Description
buildDataTableRenderer ( $dataTable ) : Piwik\DataTable\Renderer
init ( )

Private Methods

Méthode Description
getFormatFromClass ( $klassname )

Method Details

__construct() final public méthode

final public __construct ( $request )

buildDataTableRenderer() protected méthode

protected buildDataTableRenderer ( $dataTable ) : Piwik\DataTable\Renderer
$dataTable
Résultat Piwik\DataTable\Renderer

factory() public static méthode

public static factory ( string $format, array $request ) : ApiRenderer
$format string
$request array
Résultat ApiRenderer

init() protected méthode

protected init ( )

renderArray() public méthode

public renderArray ( $array )

renderDataTable() public méthode

public renderDataTable ( $dataTable )

renderException() public méthode

public renderException ( $message, Exceptio\Exception | Throwable $exception ) : mixed
$message
$exception Exceptio\Exception | Throwable
Résultat mixed

renderObject() public méthode

public renderObject ( $object )

renderResource() public méthode

public renderResource ( $resource )

renderScalar() public méthode

public renderScalar ( $scalar )

renderSuccess() public méthode

public renderSuccess ( $message )

sendHeader() abstract public méthode

abstract public sendHeader ( )

Property Details

$request protected_oe property

protected $request