PHP Class Piwik\Twig

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

Méthodes publiques

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

Méthodes protégées

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

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

public __construct ( )

addFilter_money() protected méthode

protected addFilter_money ( )

addFilter_nonce() protected méthode

protected addFilter_nonce ( )

addFilter_notification() protected méthode

protected addFilter_notification ( )

addFilter_number() protected méthode

protected addFilter_number ( )

addFilter_percent() protected méthode

protected addFilter_percent ( )

addFilter_percentEvolution() protected méthode

addFilter_percentage() protected méthode

protected addFilter_percentage ( )

addFilter_prettyDate() protected méthode

protected addFilter_prettyDate ( )

addFilter_safeDecodeRaw() protected méthode

protected addFilter_safeDecodeRaw ( )

addFilter_sumTime() protected méthode

protected addFilter_sumTime ( )

addFilter_translate() protected méthode

protected addFilter_translate ( )

addFilter_truncate() protected méthode

protected addFilter_truncate ( )

addFilter_urlRewriteWithParameters() protected méthode

addFunction_getJavascriptTranslations() protected méthode

addFunction_includeAssets() protected méthode

addFunction_isPluginLoaded() protected méthode

addFunction_linkTo() protected méthode

protected addFunction_linkTo ( )

addFunction_postEvent() protected méthode

protected addFunction_postEvent ( )

addFunction_sparkline() protected méthode

protected addFunction_sparkline ( )

addPiwikPath() public static méthode

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

create template loader for a custom theme
protected getCustomThemeLoader ( Plugin $theme ) : Twig_Loader_Filesystem
$theme Plugin
Résultat Twig_Loader_Filesystem

getTwigEnvironment() public méthode

public getTwigEnvironment ( )