Class ConfigModelTemplates

Description

Template style model.

  • since: 3.2

Located in /components/com_config/model/templates.php (line 19)

JModelBase
   |
   --JModelDatabase
      |
      --ConfigModelCms
         |
         --ConfigModelForm
            |
            --ConfigModelTemplates
Method Summary
 JForm getForm ([array $data = array()], [boolean $loadData = true])
 void populateState ()
 void preprocessForm (JForm $form, mixed $data, [string $group = 'content'])
Variables
Methods
getForm (line 49)

Method to get the record form.

  • return: A JForm object on success, false on failure
  • since: 3.2
  • access: public
JForm getForm ([array $data = array()], [boolean $loadData = true])
  • array $data: An optional array of data for the form to interogate.
  • boolean $loadData: True if the form is to load its own data (default case), false if not.

Redefinition of:
ConfigModelForm::getForm()
Abstract method for getting the form from the model.
populateState (line 28)

Method to auto-populate the model state.

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

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

Redefinition of:
ConfigModelCms::populateState()
Method to auto-populate the model state.
preprocessForm (line 90)

Method to preprocess the form

  • since: 3.2
  • throws: Exception if there is an error in the form event.
  • access: protected
void preprocessForm (JForm $form, mixed $data, [string $group = 'content'])
  • JForm $form: A form object.
  • mixed $data: The data expected for the form.
  • string $group: Plugin group to load

Redefinition of:
ConfigModelForm::preprocessForm()
Method to allow derived classes to preprocess the form.

Inherited Methods

Inherited From ConfigModelForm

 ConfigModelForm::checkin()
 ConfigModelForm::checkout()
 ConfigModelForm::getForm()
 ConfigModelForm::loadForm()
 ConfigModelForm::loadFormData()
 ConfigModelForm::preprocessData()
 ConfigModelForm::preprocessForm()
 ConfigModelForm::validate()

Inherited From ConfigModelCms

 ConfigModelCms::__construct()
 ConfigModelCms::canDelete()
 ConfigModelCms::canEditState()
 ConfigModelCms::cleanCache()
 ConfigModelCms::getName()
 ConfigModelCms::getState()
 ConfigModelCms::populateState()
 ConfigModelCms::registerTablePaths()

Inherited From JModelDatabase

 JModelDatabase::__construct()
 JModelDatabase::getDb()
 JModelDatabase::loadDb()
 JModelDatabase::setDb()

Inherited From JModelBase

 JModelBase::__construct()
 JModelBase::getState()
 JModelBase::loadState()
 JModelBase::setState()

Documentation generated on Tue, 19 Nov 2013 15:15:37 +0100 by phpDocumentor 1.4.3