Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
getForm ($data=array(), $loadData=true) | |
getData () | |
save ($data) | |
removeroot () | |
storePermissions ($permission=null) | |
sendTestMail () | |
Fonctions membres publiques hérités de ConfigModelForm | |
checkin ($pk=null) | |
checkout ($pk=null) | |
getForm ($data=array(), $loadData=true) | |
validate ($form, $data, $group=null) | |
Fonctions membres publiques hérités de ConfigModelCms | |
__construct ($config=array()) | |
getName () | |
getState () | |
registerTablePaths ($config=array()) | |
Fonctions membres publiques hérités de JModelDatabase | |
__construct (Registry $state=null, JDatabaseDriver $db=null) | |
getDb () | |
setDb (JDatabaseDriver $db) | |
Fonctions membres publiques hérités de JModelBase | |
__construct (Registry $state=null) | |
getState () | |
setState (Registry $state) | |
Fonctions membres privées | |
writeConfigFile (Registry $config) | |
Attributs privés | |
$protectedConfigurationFields = array('password', 'secret', 'ftp_pass', 'smtppass', 'redis_server_auth', 'session_redis_server_auth') | |
Membres hérités additionnels | |
Fonctions membres protégées hérités de ConfigModelForm | |
loadForm ($name, $source=null, $options=array(), $clear=false, $xpath=false) | |
loadFormData () | |
preprocessData ($context, &$data) | |
preprocessForm (JForm $form, $data, $group='content') | |
Fonctions membres protégées hérités de ConfigModelCms | |
cleanCache ($group=null, $clientId=0) | |
populateState () | |
canDelete ($record) | |
canEditState ($record) | |
Fonctions membres protégées hérités de JModelDatabase | |
loadDb () | |
Fonctions membres protégées hérités de JModelBase | |
loadState () | |
Attributs protégés hérités de ConfigModelForm | |
$forms = array() | |
Attributs protégés hérités de ConfigModelCms | |
$name | |
$option = null | |
$text_prefix = null | |
$__state_set = null | |
Attributs protégés hérités de JModelDatabase | |
$db | |
Attributs protégés hérités de JModelBase | |
$state | |
Model for the global configuration
getData | ( | ) |
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.
getForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Method to get a form object.
array | $data | Data for the form. |
boolean | $loadData | True if the form is to load its own data (default case), false if not. |
Références $form.
removeroot | ( | ) |
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.
Références $config, $dispatcher, $prev, et JEventDispatcher\getInstance().
Référencé par ConfigControllerApplicationRemoveroot\execute().
save | ( | $data | ) |
Method to save the configuration data.
array | $data | An array containing all global config data. |
Références $app, $asset, $config, $data, $dispatcher, $extension, $options, $path, $prev, elseif, JEventDispatcher\getInstance(), JDatabaseDriver\getInstance(), JPATH_SITE, et null.
sendTestMail | ( | ) |
storePermissions | ( | $permission = null | ) |
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.
string | $permission | Need an array with Permissions (component, rule, value and title) |
do: incorrect ACL stored When changing a permission of an item that doesn't have a row in the asset table the row a new row is created. This works fine for item <-> component <-> global config scenario and component <-> global config scenario. But doesn't work properly for item <-> section(s) <-> component <-> global config scenario, because a wrong parent asset id (the component) is stored. Happens when there is no row in the asset table (ex: deleted or not created on update).
do: incorrect info When creating a new item (not saving) it uses the calculated permissions from the component (item <-> component <-> global config). But if we have a section too (item <-> section(s) <-> component <-> global config) this is not correct. Also, currently it uses the component permission, but should use the calculated permissions for achild of the component/section.
Component/Item with explicit "Denied" permission at parent Asset (Category, Component or Global config) configuration. Or some parent group has an explicit "Denied". Calculated permission is "Not Allowed (Locked)".
Références $app, $asset, $assetId, $data, $query, $user, elseif, json_encode, null, et true.
|
private |
Method to write the configuration to a file.
Registry | $config | A Registry object containing all global config data. |
RuntimeException |
Références $app, $config, $file, jimport(), et JPATH_CONFIGURATION.
|
private |