PHP Class Piwik\Twig

Show file Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
__construct ( )
addPiwikPath ( string &$value, integer $key, string $path ) Prepend relative paths with absolute Piwik path
getTwigEnvironment ( )

Protected Methods

Method Description
addFilter_money ( )
addFilter_nonce ( )
addFilter_notification ( )
addFilter_number ( )
addFilter_percent ( )
addFilter_percentEvolution ( )
addFilter_percentage ( )
addFilter_prettyDate ( )
addFilter_safeDecodeRaw ( )
addFilter_sumTime ( )
addFilter_translate ( )
addFilter_truncate ( )
addFilter_urlRewriteWithParameters ( )
addFunction_getJavascriptTranslations ( )
addFunction_includeAssets ( )
addFunction_isPluginLoaded ( )
addFunction_linkTo ( )
addFunction_postEvent ( )
addFunction_sparkline ( )
getCustomThemeLoader ( Plugin $theme ) : Twig_Loader_Filesystem create template loader for a custom theme

Private Methods

Method Description
addCustomPluginNamespaces ( Twig_Loader_Filesystem $loader, $pluginName ) Plugin-Templates can be overwritten by putting identically named templates in plugins/[theme]/templates/plugins/[plugin]/
addFilter_md5 ( )
addFilter_onlyDomain ( )
addPluginNamespaces ( Twig_Loader_Filesystem $loader )
addTest_emptyString ( )
addTest_false ( )
addTest_true ( )
getDefaultThemeLoader ( ) : Twig_Loader_Filesystem
getProfessionalServicesAdvertising ( )

Method Details

__construct() public method

public __construct ( )

addFilter_money() protected method

protected addFilter_money ( )

addFilter_nonce() protected method

protected addFilter_nonce ( )

addFilter_notification() protected method

protected addFilter_notification ( )

addFilter_number() protected method

protected addFilter_number ( )

addFilter_percent() protected method

protected addFilter_percent ( )

addFilter_percentEvolution() protected method

addFilter_percentage() protected method

protected addFilter_percentage ( )

addFilter_prettyDate() protected method

protected addFilter_prettyDate ( )

addFilter_safeDecodeRaw() protected method

protected addFilter_safeDecodeRaw ( )

addFilter_sumTime() protected method

protected addFilter_sumTime ( )

addFilter_translate() protected method

protected addFilter_translate ( )

addFilter_truncate() protected method

protected addFilter_truncate ( )

addFilter_urlRewriteWithParameters() protected method

addFunction_getJavascriptTranslations() protected method

addFunction_includeAssets() protected method

addFunction_isPluginLoaded() protected method

addFunction_linkTo() protected method

protected addFunction_linkTo ( )

addFunction_postEvent() protected method

protected addFunction_postEvent ( )

addFunction_sparkline() protected method

protected addFunction_sparkline ( )

addPiwikPath() public static method

Prepend relative paths with absolute Piwik path
public static addPiwikPath ( string &$value, integer $key, string $path )
$value string relative path (pass by reference)
$key integer (don't care)
$path string Piwik root

getCustomThemeLoader() protected method

create template loader for a custom theme
protected getCustomThemeLoader ( Plugin $theme ) : Twig_Loader_Filesystem
$theme Plugin
return Twig_Loader_Filesystem

getTwigEnvironment() public method

public getTwigEnvironment ( )