Method to check if new template name already exists
boolean
checkNewName
()
Method to delete tmp folder
boolean
cleanup
()
Compile less using the less compiler under /build.
boolean
compileLess
(string $input)
-
string
$input: The relative location of the less file.
Method to check if new template name already exists
boolean
copy
()
Copy a file.
boolean
copyFile
(string $newName, string $location, string $file)
-
string
$newName: The name of the copied file
-
string
$location: The final location where the file is to be copied
-
string
$file: The name and location of the file
Create new file.
boolean
createFile
(string $name, string $type, string $location)
-
string
$name: The name of file.
-
string
$type: The extension of the file.
-
string
$location: Location for the new file.
Create new folder.
boolean
createFolder
(string $name, string $location)
-
string
$name: The name of the new folder.
-
string
$location: Location for the new folder.
Create overrides.
boolean
createOverride
(string $override)
-
string
$override: The override location.
Crop an image.
boolean
cropImage
(string $file, string $w, string $h, string $x, string $y)
-
string
$file: The name and location of the file
-
string
$w: width.
-
string
$h: height.
-
string
$x: x-coordinate.
-
string
$y: y-coordinate.
Delete a particular file.
boolean
deleteFile
(string $file)
-
string
$file: The relative location of the file.
Delete a folder.
boolean
deleteFolder
(string $location)
-
string
$location: The name and location of the folder.
Extract contents of a archive file.
boolean
extractArchive
(string $file)
-
string
$file: The name and location of the file
Method to rename the template in the XML files and rename the language files
boolean
fixTemplateName
()
Get the compressed files.
array
getArchive
()
Get the directory tree.
array
getDirectoryTree
(string $dir)
-
string
$dir: The path of the directory to scan
Internal method to get file properties.
object
getFile
(string $path, string $name)
-
string
$path: The base path.
-
string
$name: The file name.
Method to get a list of all the files to edit in a template.
array
getFiles
()
Rename a file.
mixed
getFont
()
Method to get the record form.
JForm
getForm
([
array $data =
array()], [
boolean $loadData =
true])
-
array
$data: Data for the form.
-
boolean
$loadData: True if the form is to load its own data (default case), false if not.
Redefinition of:
- JModelForm::getForm()
- Abstract method for getting the form from the model.
Method to check if new template name already exists
string
getFromName
()
Check the admin template.
object object
getHathor
()
Get an image address, height and width.
array
getImage
()
Get overrides folder.
object containing
getOverridesFolder
(string $name, string $path)
-
string
$name: The name of override.
-
string
$path: Location of override.
Get a list of overrides.
array
getOverridesList
()
Template preview.
object object
getPreview
()
Method to get a single record.
mixed
&getSource
()
Method to get the template information.
mixed
&getTemplate
()
Method to get the data that should be injected in the form.
mixed
loadFormData
()
Redefinition of:
- JModelForm::loadFormData()
- Method to get the data that should be injected in the form.
Method to auto-populate the model state.
Note. Calling getState in this method will result in recursion.
void
populateState
()
Redefinition of:
- JModelLegacy::populateState()
- Method to auto-populate the model state.
Rename a file.
string
renameFile
(string $file, string $name)
-
string
$file: The name and location of the old file
-
string
$name: The new name of the file.
Resize an image.
boolean
resizeImage
(string $file, string $width, string $height)
-
string
$file: The name and location of the file
-
string
$width: The new width of the image.
-
string
$height: The new height of the image.
Method to store the source file contents.
boolean
save
(array $data)
-
array
$data: The source data to save.
Upload new file.
boolean
uploadFile
(string $file, string $location)
-
string
$file: The name of the file.
-
string
$location: Location for the new file.
Inherited Methods
Inherited From JModelForm
JModelForm::checkin()
JModelForm::checkout()
JModelForm::getForm()
JModelForm::loadForm()
JModelForm::loadFormData()
JModelForm::preprocessData()
JModelForm::preprocessForm()
JModelForm::validate()
Inherited From JModelLegacy
JModelLegacy::__construct()
JModelLegacy::addIncludePath()
JModelLegacy::addTablePath()
JModelLegacy::cleanCache()
JModelLegacy::getDbo()
JModelLegacy::getInstance()
JModelLegacy::getName()
JModelLegacy::getState()
JModelLegacy::getTable()
JModelLegacy::loadHistory()
JModelLegacy::populateState()
JModelLegacy::setDbo()
JModelLegacy::setState()
JModelLegacy::_createFileName()
JModelLegacy::_createTable()
JModelLegacy::_getList()
JModelLegacy::_getListCount()
Inherited From JObject
JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::__toString()