PHP Class Piwik\AssetManager\UIAssetMerger

Datei anzeigen Open project: piwik/piwik Class Usage Examples

Protected Properties

Property Type Description
$cacheBuster Piwik\AssetManager\UIAssetCacheBuster
$mergedContent string

Public Methods

Method Description
__construct ( Piwik\AssetManager\UIAsset $mergedAsset, Piwik\AssetManager\UIAssetFetcher $assetFetcher, Piwik\AssetManager\UIAssetCacheBuster $cacheBuster )
generateFile ( )

Protected Methods

Method Description
concatenateAssets ( )
generateCacheBuster ( ) : string
getAssetCatalog ( ) : Piwik\AssetManager\UIAssetCatalog
getCacheBusterValue ( ) : string
getConcatenatedAssets ( )
getFileSeparator ( ) : string
getMergedAssets ( ) : string
getPlugins ( ) : string[]
getPreamble ( ) : string
postEvent ( string &$mergedContent )
processFileContent ( Piwik\AssetManager\UIAsset $uiAsset ) : string

Private Methods

Method Description
addPreamble ( )
adjustPaths ( )
isFileUpToDate ( ) : boolean
shouldGenerate ( ) : boolean
writeContentToFile ( )

Method Details

__construct() public method

public __construct ( Piwik\AssetManager\UIAsset $mergedAsset, Piwik\AssetManager\UIAssetFetcher $assetFetcher, Piwik\AssetManager\UIAssetCacheBuster $cacheBuster )
$mergedAsset Piwik\AssetManager\UIAsset
$assetFetcher Piwik\AssetManager\UIAssetFetcher
$cacheBuster Piwik\AssetManager\UIAssetCacheBuster

concatenateAssets() protected method

protected concatenateAssets ( )

generateCacheBuster() abstract protected method

abstract protected generateCacheBuster ( ) : string
return string

generateFile() public method

public generateFile ( )

getAssetCatalog() protected method

protected getAssetCatalog ( ) : Piwik\AssetManager\UIAssetCatalog
return Piwik\AssetManager\UIAssetCatalog

getCacheBusterValue() protected method

protected getCacheBusterValue ( ) : string
return string

getConcatenatedAssets() protected method

protected getConcatenatedAssets ( )

getFileSeparator() abstract protected method

abstract protected getFileSeparator ( ) : string
return string

getMergedAssets() abstract protected method

abstract protected getMergedAssets ( ) : string
return string

getPlugins() protected method

protected getPlugins ( ) : string[]
return string[]

getPreamble() abstract protected method

abstract protected getPreamble ( ) : string
return string

postEvent() abstract protected method

abstract protected postEvent ( string &$mergedContent )
$mergedContent string

processFileContent() abstract protected method

abstract protected processFileContent ( Piwik\AssetManager\UIAsset $uiAsset ) : string
$uiAsset Piwik\AssetManager\UIAsset
return string

Property Details

$cacheBuster protected_oe property

protected UIAssetCacheBuster,Piwik\AssetManager $cacheBuster
return Piwik\AssetManager\UIAssetCacheBuster

$mergedContent protected_oe property

protected string $mergedContent
return string