![]() |
Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
getForm ($data=array(), $loadData=true) | |
getData () | |
validateDbConnection ($data) | |
save ($data) | |
removeroot () | |
sendTestMail () | |
![]() | |
__construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null) | |
checkin ($pk=null) | |
checkout ($pk=null) | |
validate ($form, $data, $group=null) | |
![]() | |
__construct ($config=array(), MVCFactoryInterface $factory=null) | |
getTable ($name='', $prefix='', $options=array()) | |
isCheckedOut ($item) | |
getDbo () | |
setDbo (DatabaseInterface $db=null) | |
__get ($name) | |
![]() | |
__construct ($config=array()) | |
getName () | |
![]() | |
__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) | |
![]() | |
getState ($property=null, $default=null) | |
setState ($property, $value=null) | |
![]() | |
setDispatcher (DispatcherInterface $dispatcher) | |
![]() | |
setCurrentUser (User $currentUser) | |
![]() | |
setCacheControllerFactory (CacheControllerFactoryInterface $factory) | |
![]() | |
setDatabase (DatabaseInterface $db) | |
![]() | |
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 | |
![]() | |
static | addIncludePath ($path='', $prefix='') |
![]() | |
_getList ($query, $limitstart=0, $limit=0) | |
_getListCount ($query) | |
_createTable ($name, $prefix='Table', $config=array()) | |
bootComponent ($component) | |
dispatchEvent (EventInterface $event) | |
![]() | |
$events_map = null | |
![]() | |
$option = null | |
$event_clean_cache = null | |
![]() | |
$name | |
![]() | |
$_errors = array() | |
![]() | |
static | $paths |
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.
Références $config, $data, $params, $temp, ArrayHelper\fromObject(), Factory\getApplication(), Joomla\Database\getDatabase(), et ComponentHelper\getParams().
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. |
Implémente FormModelInterface.
Références $form, et Joomla\CMS\MVC\Model\loadForm().
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 $app, $config, $result, Text\_(), ArrayHelper\fromObject(), et Factory\getApplication().
save | ( | $data | ) |
Method to save the configuration data.
array | $data | An array containing all global config data. |
Références $app, $config, $data, $db, $extension, $options, $path, $query, $result, $value, Text\_(), Log\add(), OutputFilter\ampReplace(), Path\clean(), Folder\create(), elseif, Folder\exists(), ArrayHelper\fromObject(), UserHelper\genRandomPassword(), Factory\getApplication(), Factory\getCache(), Joomla\Database\getDatabase(), Access\getGroupsByUser(), HttpFactory\getHttp(), Uri\getInstance(), Table\getInstance(), DatabaseDriver\getInstance(), Factory\getUser(), JPATH_ADMINISTRATOR, JPATH_CACHE, JPATH_ROOT, null, Uri\root(), Text\sprintf(), et Log\WARNING.
sendTestMail | ( | ) |
Method to send a test mail which is called via an AJAX request
Références $app, $input, $methodName, $user, Text\_(), Factory\getApplication(), Factory\getMailer(), Factory\getUser(), null, et Text\sprintf().
validateDbConnection | ( | $data | ) |
Method to validate the db connection properties.
array | $data | An array containing all global config data. |
Références $data, Text\_(), Path\clean(), File\exists(), Factory\getApplication(), et Text\sprintf().
|
private |
Method to write the configuration to a file.
Références $app, $config, $configuration, Text\_(), Factory\getApplication(), Path\isOwner(), JPATH_CONFIGURATION, Path\setPermissions(), et File\write().
|
private |