Class TemplatesModelSource

Description
  • since: 1.5

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

JObject
   |
   --JModel
      |
      --JModelForm
         |
         --TemplatesModelSource
Variable Summary
object $_template
Method Summary
JForm getForm ([array $data = array()], [boolean $loadData = true])
mixed &getSource ()
mixed &getTemplate ()
mixed loadFormData ()
void populateState ()
boolean save (array $data)
Variables
object $_template = null (line 26)

Cache for the template information.

  • access: private

Inherited Variables

Inherited from JModelForm

JModelForm::$_forms

Inherited from JModel

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

Inherited from JObject

JObject::$_errors
Methods
getForm (line 67)

Method to get the record form.

  • return: A JForm object on success, false on failure
  • since: 1.6
  • access: public
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.
getSource (line 117)

Method to get a single record.

  • return: Object on success, false on failure.
  • since: 1.6
  • access: public
mixed &getSource ()
getTemplate (line 149)

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 ()
loadFormData (line 99)

Method to get the data that should be injected in the form.

  • return: The data for the form.
  • since: 1.6
  • access: protected
mixed loadFormData ()

Redefinition of:
JModelForm::loadFormData()
Method to get the data that should be injected in the form.
populateState (line 35)

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.
save (line 188)

Method to store the source file contents.

  • return: True on success, false otherwise and internal error set.
  • since: 1.6
  • access: public
boolean save (array $data)
  • array $data: The souce data to save.

Inherited Methods

Inherited From JModelForm

JModelForm::checkin()
JModelForm::checkout()
JModelForm::getForm()
JModelForm::loadForm()
JModelForm::loadFormData()
JModelForm::preprocessForm()
JModelForm::validate()

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 13:59:39 -0500 by phpDocumentor 1.4.4