Class ConfigModelApplication

Description

Located in /administrator/components/com_config/models/application.php (line 17)

JObject
   |
   --JModel
      |
      --JModelForm
         |
         --ConfigModelApplication
Method Summary
array getData ()
mixed getForm ([array $data = array()], [boolean $loadData = true])
void removeroot ()
bool save (array $data)
bool writeConfigFile (JRegistry $config)
Variables
Methods
getData (line 52)

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 29)

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:
JModelForm::getForm()
Abstract method for getting the form from the model.
removeroot (line 218)

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.

  • since: 1.6
void removeroot ()
save (line 93)

Method to save the configuration data.

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

Method to write the configuration to a file.

  • return: True on success, false on failure.
  • since: 2.5.4
  • access: private
bool writeConfigFile (JRegistry $config)
  • JRegistry $config: A JRegistry object containing all global config data.

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:52:10 -0500 by phpDocumentor 1.4.4