Class ConfigModelApplication

Description

Model for the global configuration

  • since: 3.2

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

JModelBase
   |
   --JModelDatabase
      |
      --ConfigModelCms
         |
         --ConfigModelForm
            |
            --ConfigModelApplication
Method Summary
 array getData ()
 mixed getForm ([array $data = array()], [boolean $loadData = true])
 boolean removeroot ()
 boolean save (array $data)
Variables
Methods
getData (line 55)

Method to get the configuration data.

This method will load the global configuration data straight from JConfig. If configuration data has been saved in the session, that data will be merged into the original data, overwriting it.

  • return: An array containg all global config data.
  • since: 1.6
  • access: public
array getData ()
getForm (line 31)

Method to get a form object.

  • return: A JForm object on success, false on failure
  • since: 1.6
  • access: public
mixed 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:
ConfigModelForm::getForm()
Abstract method for getting the form from the model.
removeroot (line 239)

Method to unset the root_user value from configuration data.

This method will load the global configuration data straight from JConfig and remove the root_user value for security, then save the configuration.

  • return: True on success, false on failure.
  • since: 1.6
  • access: public
boolean removeroot ()
save (line 96)

Method to save the configuration data.

  • return: True on success, false on failure.
  • since: 1.6
  • access: public
boolean save (array $data)
  • array $data: An array containing all global config data.

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 14:53:48 +0100 by phpDocumentor 1.4.3