Property | Type | Description | |
---|---|---|---|
$arrFiles | array | Files | |
$strKey | string | Unique file key | |
$strMode | string | Operation mode |
Method | 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 |
Method | 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 |
return | string | The path to the combined file |
protected getCombinedFileUrl ( string $strUrl = null ) : string | ||
$strUrl | string | An optional URL to prepend |
return | string | The path to the combined file |
protected getDebugMarkup ( ) : string | ||
return | string | The debug markup |
public getFileUrls ( ) : array | ||
return | array | The file URLs |
public hasEntries ( ) : boolean | ||
return | boolean | True if there are files |