Method | Description | |
---|---|---|
__construct ( $pipeline, $paths, $prefix ) | ||
getDirectoriesFor ( $ext ) | ||
getDirectory ( $name, $ext ) | first-depth find. only returns 1 result | |
getFile ( $name, $type ) | ||
getFileListName ( ) | ||
getFilesUnder ( $name, $ext, $depth ) | vomit | |
getNameAndExtension ( $name ) | reads name and extension for a file name | |
getPathsHash ( ) | ||
getTypeForExt ( $ext ) : string | returns the named type of an extension ie png, gif, jpg and jpeg are images, no need to have separate folders same applies to otf and ttf, they're fonts | |
hasDirectory ( $name ) | ||
hasFile ( $name, $type ) | ||
hasProcessedFile ( $file ) | ||
resolveFile ( $name ) | ||
save ( ) | Calling file_put_contents within a destructor will cause the file to be written in SERVER_ROOT. | |
setDefaultExtension ( $ext ) | # } | |
skipFile ( $file ) |
Method | Description | |
---|---|---|
findFile ( string $name, string $ext ) | finds a file, whether it has many extensions or not findFile('xe', 'css') will find 'xs.css.less' |
public getDirectory ( $name, $ext ) |
public getNameAndExtension ( $name ) |
public getTypeForExt ( $ext ) : string | ||
return | string | ext's named type, or extension itself |