프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$arrFiles | array | Files | |
$strKey | string | Unique file key | |
$strMode | string | Operation mode |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
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 |
리턴 | string | The path to the combined file |
protected getCombinedFileUrl ( string $strUrl = null ) : string | ||
$strUrl | string | An optional URL to prepend |
리턴 | string | The path to the combined file |
protected getDebugMarkup ( ) : string | ||
리턴 | string | The debug markup |
public getFileUrls ( ) : array | ||
리턴 | array | The file URLs |
public hasEntries ( ) : boolean | ||
리턴 | boolean | True if there are files |