Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe ApplicationModel
+ Graphe d'héritage de ApplicationModel:

Fonctions membres publiques

 getForm ($data=array(), $loadData=true)
 
 getData ()
 
 validateDbConnection ($data)
 
 save ($data)
 
 removeroot ()
 
 sendTestMail ()
 
- Fonctions membres publiques hérités de FormModel
 __construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null)
 
 checkin ($pk=null)
 
 checkout ($pk=null)
 
 validate ($form, $data, $group=null)
 
- Fonctions membres publiques hérités de BaseDatabaseModel
 __construct ($config=array(), MVCFactoryInterface $factory=null)
 
 getTable ($name='', $prefix='', $options=array())
 
 isCheckedOut ($item)
 
 getDbo ()
 
 setDbo (DatabaseInterface $db=null)
 
 __get ($name)
 
- Fonctions membres publiques hérités de BaseModel
 __construct ($config=array())
 
 getName ()
 
- Fonctions membres publiques hérités de CMSObject
 __construct ($properties=null)
 
 __toString ()
 
 def ($property, $default=null)
 
 get ($property, $default=null)
 
 getProperties ($public=true)
 
 getError ($i=null, $toString=true)
 
 getErrors ()
 
 set ($property, $value=null)
 
 setProperties ($properties)
 
 setError ($error)
 
- Fonctions membres publiques hérités de StatefulModelInterface
 getState ($property=null, $default=null)
 
 setState ($property, $value=null)
 
- Fonctions membres publiques hérités de DispatcherAwareInterface
 setDispatcher (DispatcherInterface $dispatcher)
 
- Fonctions membres publiques hérités de CurrentUserInterface
 setCurrentUser (User $currentUser)
 
- Fonctions membres publiques hérités de CacheControllerFactoryAwareInterface
 setCacheControllerFactory (CacheControllerFactoryInterface $factory)
 
- Fonctions membres publiques hérités de DatabaseAwareInterface
 setDatabase (DatabaseInterface $db)
 
- Fonctions membres publiques hérités de FormFactoryAwareInterface
 setFormFactory (FormFactoryInterface $factory)
 

Fonctions membres privées

 writeConfigFile (Registry $config)
 

Attributs privés

 $protectedConfigurationFields = array('password', 'secret', 'smtppass', 'redis_server_auth', 'session_redis_server_auth')
 

Membres hérités additionnels

- Fonctions membres publiques statiques hérités de BaseModel
static addIncludePath ($path='', $prefix='')
 
- Fonctions membres protégées hérités de BaseDatabaseModel
 _getList ($query, $limitstart=0, $limit=0)
 
 _getListCount ($query)
 
 _createTable ($name, $prefix='Table', $config=array())
 
 bootComponent ($component)
 
 dispatchEvent (EventInterface $event)
 
- Attributs protégés hérités de FormModel
 $events_map = null
 
- Attributs protégés hérités de BaseDatabaseModel
 $option = null
 
 $event_clean_cache = null
 
- Attributs protégés hérités de BaseModel
 $name
 
- Attributs protégés hérités de CMSObject
 $_errors = array()
 
- Attributs protégés statiques hérités de BaseModel
static $paths
 

Description détaillée

Model for the global configuration

Depuis
3.2

Documentation des fonctions membres

◆ getData()

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.

Renvoie
array An array containing all global config data.
Depuis
1.6

Références $config, $data, $params, $temp, ArrayHelper\fromObject(), Factory\getApplication(), Joomla\Database\getDatabase(), et ComponentHelper\getParams().

◆ getForm()

getForm (   $data = array(),
  $loadData = true 
)

Method to get a form object.

Paramètres
array$dataData for the form.
boolean$loadDataTrue if the form is to load its own data (default case), false if not.
Renvoie
mixed A JForm object on success, false on failure
Depuis
1.6

Implémente FormModelInterface.

Références $form, et Joomla\CMS\MVC\Model\loadForm().

◆ removeroot()

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.

Renvoie
boolean True on success, false on failure.
Depuis
1.6

Références $app, $config, $result, Text\_(), ArrayHelper\fromObject(), et Factory\getApplication().

◆ save()

◆ sendTestMail()

sendTestMail ( )

Method to send a test mail which is called via an AJAX request

Renvoie
boolean
Depuis
3.5

Références $app, $input, $methodName, $user, Text\_(), Factory\getApplication(), Factory\getMailer(), Factory\getUser(), null, et Text\sprintf().

◆ validateDbConnection()

validateDbConnection (   $data)

Method to validate the db connection properties.

Paramètres
array$dataAn array containing all global config data.
Renvoie
array|boolean Array with the validated global config data or boolean false on a validation failure.
Depuis
4.0.0

Références $data, Text\_(), Path\clean(), File\exists(), Factory\getApplication(), et Text\sprintf().

◆ writeConfigFile()

writeConfigFile ( Registry  $config)
private

Method to write the configuration to a file.

Paramètres
Registry$configA Registry object containing all global config data.
Renvoie
boolean True on success, false on failure.
Depuis
2.5.4
Exceptions

Références $app, $config, $configuration, Text\_(), Factory\getApplication(), Path\isOwner(), JPATH_CONFIGURATION, Path\setPermissions(), et File\write().

Documentation des champs

◆ $protectedConfigurationFields

$protectedConfigurationFields = array('password', 'secret', 'smtppass', 'redis_server_auth', 'session_redis_server_auth')
private

La documentation de cette classe a été générée à partir du fichier suivant :