Свойство | Type | Description | |
---|---|---|---|
$arrFiles | array | Files | |
$strKey | string | Unique file key | |
$strMode | string | Operation mode |
Méthode | Description | |
---|---|---|
__construct ( ) | Public constructor required | |
add ( string $strFile, string $strVersion = null, string $strMedia = 'all' ) | Add a file to the combined file | |
addMultiple ( array $arrFiles, string $strVersion = null, string $strMedia = 'screen' ) | Add multiple files from an array | |
getCombinedFile ( string $strUrl = null ) : string | Generate the combined file and return its path | |
getFileUrls ( ) : array | Generates the files and returns the URLs. | |
hasEntries ( ) : boolean | Check whether files have been added |
Méthode | Description | |
---|---|---|
fixPaths ( string $content, array $arrFile ) : string | Fix the paths | |
getCombinedFileUrl ( string $strUrl = null ) : string | Generate the combined file and return its path | |
getDebugMarkup ( ) : string | Generates the debug markup. | |
handleCss ( string $content, array $arrFile ) : string | Handle CSS files | |
handleScssLess ( string $content, array $arrFile ) : string | Handle SCSS/LESS files |
public getCombinedFile ( string $strUrl = null ) : string | ||
$strUrl | string | An optional URL to prepend |
Résultat | string | The path to the combined file |
protected getCombinedFileUrl ( string $strUrl = null ) : string | ||
$strUrl | string | An optional URL to prepend |
Résultat | string | The path to the combined file |
protected getDebugMarkup ( ) : string | ||
Résultat | string | The debug markup |
public getFileUrls ( ) : array | ||
Résultat | array | The file URLs |
public hasEntries ( ) : boolean | ||
Résultat | boolean | True if there are files |