PHP Class Piwik\AssetManager\UIAssetMerger\StylesheetUIAssetMerger

Inheritance: extends Piwik\AssetManager\UIAssetMerger
Datei anzeigen Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
__construct ( $mergedAsset, $assetFetcher, $cacheBuster )
getFileSeparator ( )

Protected Methods

Method Description
concatenateAssets ( )
countDirectoriesInPathToRoot ( Piwik\AssetManager\UIAsset $uiAsset ) : integer
generateCacheBuster ( )
getMergedAssets ( )
getPreamble ( )
postEvent ( &$mergedContent )
processFileContent ( $uiAsset )

Private Methods

Method Description
getCssPathsRewriter ( Piwik\AssetManager\UIAsset $uiAsset ) : Closure Rewrite CSS url directives - rewrites paths defined relatively to their css/less definition file - rewrite windows directory separator \\ to /
getCssStatementForReplacement ( $path )
getLessCompiler ( ) : lessc
rewriteCssImagePaths ( string $content, callable $pathsRewriter ) : string Rewrite CSS url() directives
rewriteCssImportPaths ( string $content, callable $pathsRewriter ) : string Rewrite CSS import directives

Method Details

__construct() public method

public __construct ( $mergedAsset, $assetFetcher, $cacheBuster )

concatenateAssets() protected method

protected concatenateAssets ( )

countDirectoriesInPathToRoot() protected method

protected countDirectoriesInPathToRoot ( Piwik\AssetManager\UIAsset $uiAsset ) : integer
$uiAsset Piwik\AssetManager\UIAsset
return integer

generateCacheBuster() protected method

protected generateCacheBuster ( )

getFileSeparator() public method

public getFileSeparator ( )

getMergedAssets() protected method

protected getMergedAssets ( )

getPreamble() protected method

protected getPreamble ( )

postEvent() protected method

protected postEvent ( &$mergedContent )

processFileContent() protected method

protected processFileContent ( $uiAsset )