Méthode |
Description |
|
ChangeCharset ( $p_oFile, $p_dFile, $p_type, $p_charset ) |
|
|
GetAllFolders ( array $p_folders ) : array |
Returns an array containing the directories tree for the given path. |
|
GetAllTemplates ( array $p_sqlOptions = null, boolean $p_update = true, boolean $p_useFilter = false, boolean $p_strict = false ) : array |
|
|
GetContents ( string $p_path ) : string |
|
|
GetFullPath ( string $p_path, string $p_filename ) : string |
Return the full path to the file. |
|
GetPath ( $p_path, $p_filename ) : string |
Get the relative path to the given file in the template directory. |
|
GetTemplateFilterRegex ( boolean $p_sql = false ) : string |
Return an regular expression to filter template lists |
|
InUse ( $p_templateName ) : boolean |
Returns TRUE if the template is being used in an Issue or Section. |
|
IsValidPath ( string $p_path, boolenan $p_checkIfExists = true ) : boolean |
Returns true if the template path is valid. |
|
OnUpload ( $f_fileVarName, string $p_baseUpload, string $p_desiredName = null, string $p_charset = null ) : mixed |
Call this to upload a template file. Note: Template::UpdateStatus()
will be called automatically for you if this is successful. |
|
ProcessFile ( $p_tmpFile, $p_newFile, $p_charset = null ) |
|
|
Template ( $p_templateIdOrName = null ) |
A template is an HTML file with Campsite parser tags inside. |
|
UpdateOnChange ( string $p_tplOrig, string $p_tplNew ) : mixed |
Update the Name field for a template on Renaming/Moving. |
|
UpdateStatus ( ) : void |
Sync the database with the filesystem. |
|
delete ( ) : mixed |
Deletes a template file. |
|
fileExists ( ) : boolean |
Return TRUE if the file exists. |
|
getAbsoluteUrl ( ) : string |
|
|
getCacheLifetime ( ) : integer |
|
|
getLevel ( ) : integer |
|
|
getName ( ) : string |
|
|
getTemplateId ( ) : integer |
|
|
getType ( ) : integer |
|
|
move ( string $p_current_folder, string $p_destination_folder ) : boolean |
Moves a template from current folder to destination folder. |
|
setCacheLifetime ( $p_lifetime ) : boolean |
|
|
setProperty ( $p_dbColumnName, $p_value, $p_commit = true, $p_isSql = false ) |
Wrapper around DatabaseObject::setProperty |
|