PHP Class Piwik\Plugins\API\Renderer\Json

Deprecation:
Inheritance: extends Piwik\API\ApiRenderer
显示文件 Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
renderArray ( $array )
renderDataTable ( $dataTable )
renderException ( $message, Exception | Throwable $exception ) : string
renderSuccess ( $message )
sendHeader ( )

Private Methods

Method Description
applyJsonpIfNeeded ( $str ) : string
getJsonpCallback ( )
isJsonp ( )

Method Details

renderArray() public method

public renderArray ( $array )

renderDataTable() public method

public renderDataTable ( $dataTable )

renderException() public method

public renderException ( $message, Exception | Throwable $exception ) : string
$message
$exception Exception | Throwable
return string

renderSuccess() public method

public renderSuccess ( $message )

sendHeader() public method

public sendHeader ( )