Dotclear 2.24
|
Public Member Functions | |
__construct () | |
filesList (string $type, string $item='%1$s', bool $split=true) | |
getFileContent (string $type, string $f) | |
writeFile (string $type, string $f, string $content) | |
deletableFile (string $type, string $f) | |
deleteFile ($type, $f) | |
Data Fields | |
$tpl = [] | |
$css = [] | |
$js = [] | |
$po = [] | |
$php = [] | |
Protected Member Functions | |
getDestinationFile (string $type, string $f) | |
getFilesFromType (string $type) | |
updateFileInList (string $type, string $f, string $file) | |
findTemplates () | |
findStyles () | |
findScripts () | |
findLocales () | |
findCodes () | |
sortFilesHelper (string $a, string $b) | |
getFilesInDir (string $dir, ?string $ext=null, string $prefix='', ?string $model=null) | |
Protected Attributes | |
$user_theme | |
$parent_theme | |
$tplset_theme | |
$parent_name | |
$tplset_name | |
$tpl_model = [] | |
__construct | ( | ) |
Constructs a new instance.
References $parent_theme, dcCore\app(), DC_DEFAULT_TPLSET, DC_ROOT, findCodes(), findLocales(), findScripts(), findStyles(), findTemplates(), and path\real().
filesList | ( | string | $type, |
string | $item = '%1$s' , |
||
bool | $split = true |
||
) |
Display a file list
string | $type | The type of file |
string | $item | The item pattern |
bool | $split | Split from source? |
References html\escapeHTML(), and getFilesFromType().
getFileContent | ( | string | $type, |
string | $f | ||
) |
Gets the file content.
string | $type | The type |
string | $f | The file ID |
Exception |
References getDestinationFile(), and getFilesFromType().
writeFile | ( | string | $type, |
string | $f, | ||
string | $content | ||
) |
Writes a file.
string | $type | The type |
string | $f | The file ID |
string | $content | The content |
Exception |
References getDestinationFile(), getFilesFromType(), files\makeDir(), and updateFileInList().
deletableFile | ( | string | $type, |
string | $f | ||
) |
Check if a file is deletable
string | $type | The type |
string | $f | The file ID |
References getDestinationFile(), and getFilesFromType().
deleteFile | ( | $type, | |
$f | |||
) |
Delete a file
string | $type | The type |
string | $f | The file ID |
Exception |
References findTemplates(), getDestinationFile(), and getFilesFromType().
|
protected |
Gets the destination file.
string | $type | The type |
string | $f | The file ID |
Referenced by deletableFile(), deleteFile(), getFileContent(), and writeFile().
|
protected |
Gets the files list from type.
string | $type | The type |
References $css, $js, $php, $po, and $tpl.
Referenced by deletableFile(), deleteFile(), filesList(), getFileContent(), and writeFile().
|
protected |
|
protected |
Get template files of theme.
References $tpl, dcCore\app(), and getFilesInDir().
Referenced by __construct(), and deleteFile().
|
protected |
|
protected |
|
protected |
Get translations files of theme.
References getFilesInDir(), and l10n\getISOcodes().
Referenced by __construct().
|
protected |
|
protected |
Stack files sorting helper
Sort by file extension first, then by file name
string | $a | 1st file |
string | $b | 2nd file |
References files\getExtension().
|
protected |
Gets the files in dir.
string | $dir | The dir |
null | string | $ext | The search extension |
string | $prefix | The key prefix |
null | string | $model | The model |
References path\real().
Referenced by findCodes(), findLocales(), findScripts(), findStyles(), and findTemplates().
|
protected |
|
protected |
Referenced by __construct().
|
protected |
|
protected |
|
protected |
|
protected |
$tpl = [] |
Referenced by findTemplates(), getFilesFromType(), and updateFileInList().
$css = [] |
Referenced by getFilesFromType(), and updateFileInList().
$js = [] |
Referenced by getFilesFromType(), and updateFileInList().
$po = [] |
Referenced by getFilesFromType(), and updateFileInList().
$php = [] |
Referenced by getFilesFromType(), and updateFileInList().