[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_config/src/Model/ -> ApplicationModel.php (summary)

(no description)

Copyright: (C) 2013 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 1232 lines (49 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ApplicationModel:: (8 methods):
  getForm()
  getData()
  validateDbConnection()
  save()
  removeroot()
  writeConfigFile()
  storePermissions()
  sendTestMail()


Class: ApplicationModel  - X-Ref

Model for the global configuration

getForm($data = array()   X-Ref
Method to get a form object.

param: array    $data      Data for the form.
param: boolean  $loadData  True if the form is to load its own data (default case), false if not.
return: mixed  A JForm object on success, false on failure

getData()   X-Ref
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: array  An array containing all global config data.

validateDbConnection($data)   X-Ref
Method to validate the db connection properties.

param: array  $data  An array containing all global config data.
return: array|boolean  Array with the validated global config data or boolean false on a validation failure.

save($data)   X-Ref
Method to save the configuration data.

param: array  $data  An array containing all global config data.
return: boolean  True on success, false on failure.

removeroot()   X-Ref
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: boolean  True on success, false on failure.

writeConfigFile(Registry $config)   X-Ref
Method to write the configuration to a file.

param: Registry  $config  A Registry object containing all global config data.
return: boolean  True on success, false on failure.

storePermissions($permission = null)   X-Ref
Method to store the permission values in the asset table.

This method will get an array with permission key value pairs and transform it
into json and update the asset table in the database.

param: string  $permission  Need an array with Permissions (component, rule, value and title)
return: array|bool  A list of result data or false on failure.

sendTestMail()   X-Ref
Method to send a test mail which is called via an AJAX request

return: boolean



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer