PHP Class Xhgui_Twig_Extension, xhgui

Inheritance: extends Twig_Extension
Show file Open project: perftools/xhgui

Protected Properties

Property Type Description
$_app

Public Methods

Method Description
__construct ( $app )
formatBytes ( $value )
formatDiff ( $value )
formatPercent ( $value )
formatTime ( $value )
getFilters ( )
getFunctions ( )
getName ( )
makePercent ( $value, $total )
staticUrl ( $url ) : string Get the URL for static content relative to webroot
truncate ( $input, $length = 50 )
url ( $name, $queryargs = [] ) : string Get a URL for xhgui.

Protected Methods

Method Description
_getBase ( )

Method Details

__construct() public method

public __construct ( $app )

_getBase() protected method

protected _getBase ( )

formatBytes() public method

public formatBytes ( $value )

formatDiff() public method

public formatDiff ( $value )

formatPercent() public method

public formatPercent ( $value )

formatTime() public method

public formatTime ( $value )

getFilters() public method

public getFilters ( )

getFunctions() public method

public getFunctions ( )

getName() public method

public getName ( )

makePercent() public method

public makePercent ( $value, $total )

staticUrl() public method

Get the URL for static content relative to webroot
public staticUrl ( $url ) : string
return string url.

truncate() public method

public truncate ( $input, $length = 50 )

url() public method

Get a URL for xhgui.
public url ( $name, $queryargs = [] ) : string
return string url.

Property Details

$_app protected property

protected $_app