Class TemplatesModelTemplate

Description
  • since: 1.6

Located in /administrator/components/com_templates/models/template.php (line 19)

JObject
   |
   --JModel
      |
      --TemplatesModelTemplate
Variable Summary
mixed $template
Method Summary
boolean checkNewName ()
boolean cleanup ()
boolean copy ()
boolean fixTemplateName ()
object getFile (string $path, string $name)
array getFiles ()
string getFromName ()
mixed &getTemplate ()
void populateState ()
Variables
mixed $template = null (line 21)
  • access: protected

Inherited Variables

Inherited from JModel

JModel::$event_clean_cache
JModel::$name
JModel::$option
JModel::$state
JModel::$_db
JModel::$__state_set

Inherited from JObject

JObject::$_errors
Methods
checkNewName (line 161)

Method to check if new template name already exists

  • return: true if name is not used, false otherwise
  • since: 2.5
  • access: public
boolean checkNewName ()
cleanup (line 229)

Method to delete tmp folder

  • return: true if delete successful, false otherwise
  • since: 2.5
  • access: public
boolean cleanup ()
copy (line 189)

Method to check if new template name already exists

  • return: true if name is not used, false otherwise
  • since: 2.5
  • access: public
boolean copy ()
fixTemplateName (line 247)

Method to rename the template in the XML files and rename the language files

  • return: true if successful, false otherwise
  • since: 2.5
  • access: protected
boolean fixTemplateName ()
getFile (line 31)

Internal method to get file properties.

  • since: 1.6
  • access: protected
object getFile (string $path, string $name)
  • string $path: The base path.
  • string $name: The file name.
getFiles (line 49)

Method to get a list of all the files to edit in a template.

  • return: A nested array of relevant files.
  • since: 1.6
  • access: public
array getFiles ()
getFromName (line 178)

Method to check if new template name already exists

  • return: name of current template
  • since: 2.5
  • access: public
string getFromName ()
getTemplate (line 123)

Method to get the template information.

  • return: Object if successful, false if not and internal error is set.
  • since: 1.6
  • access: public
mixed &getTemplate ()
populateState (line 104)

Method to auto-populate the model state.

Note. Calling getState in this method will result in recursion.

  • since: 1.6
  • access: protected
void populateState ()

Redefinition of:
JModel::populateState()
Method to auto-populate the model state.

Inherited Methods

Inherited From JModel

JModel::__construct()
JModel::addIncludePath()
JModel::addTablePath()
JModel::cleanCache()
JModel::getDbo()
JModel::getInstance()
JModel::getName()
JModel::getState()
JModel::getTable()
JModel::populateState()
JModel::setDbo()
JModel::setState()
JModel::_createFileName()
JModel::_createTable()
JModel::_getList()
JModel::_getListCount()

Inherited From JObject

JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
JObject::__toString()

Documentation generated on Mon, 25 Jun 2012 14:00:07 -0500 by phpDocumentor 1.4.4