PHP Class Piwik\AssetManager

It performs the following actions: - Identifies required assets - Includes assets in the rendered HTML page - Manages asset merging and minifying - Manages server-side cache Whether assets are included individually or as merged files is defined by the global option 'disable_merged_assets'. See the documentation in the global config for more information.
Inheritance: extends piwik\Singleton
Show file Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
__construct ( )
compileCustomJs ( $files )
compileCustomStylesheets ( $files )
getAssetDirectory ( ) : string Check if the merged file directory exists and is writable.
getCompiledBaseCss ( ) : Piwik\AssetManager\UIAsset Return the base.less compiled to css
getCssInclusionDirective ( ) : string Return CSS file inclusion directive(s) using the markup
getJsInclusionDirective ( ) : string Return JS file inclusion directive(s) using the markup