Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null) | |
getData () | |
getForm ($data=array(), $loadData=true) | |
save ($data) | |
getTwofactorform ($userId=null) | |
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 protégées | |
loadFormData () | |
preprocessForm (Form $form, $data, $group='user') | |
populateState () | |
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 | |
$data | |
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() | |
Membres hérités additionnels | |
Fonctions membres publiques statiques hérités de BaseModel | |
static | addIncludePath ($path='', $prefix='') |
Attributs protégés statiques hérités de BaseModel | |
static | $paths |
Profile model class for Users.
__construct | ( | $config = array() , |
|
MVCFactoryInterface | $factory = null , |
||
FormFactoryInterface | $formFactory = null |
||
) |
Constructor.
array | $config | An array of configuration options (name, state, dbo, table_path, ignore_request). |
MVCFactoryInterface | $factory | The factory. |
FormFactoryInterface | $formFactory | The form factory. |
Références $config, et Symfony\Contracts\Service\__construct().
getData | ( | ) |
Method to get the profile form data.
The base form data is loaded and then an event is fired for users plugins to extend the data.
Références $data, $temp, $this, $userId, Factory\getApplication(), Joomla\CMS\MVC\Model\getState(), et null.
getForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Method to get the profile form.
The base form is loaded from XML and then an event is fired for users plugins to extend the form with extra fields.
array | $data | An optional array of data for the form to interrogate. |
boolean | $loadData | True if the form is to load its own data (default case), false if not. |
Implémente FormModelInterface.
Références $form, ComponentHelper\getParams(), Factory\getUser(), Multilanguage\isEnabled(), Joomla\CMS\MVC\Model\loadForm(), Joomla\CMS\MVC\Model\loadFormData(), et Joomla\CMS\MVC\Model\setState().
getTwofactorform | ( | $userId = null | ) |
Gets the configuration forms for all two-factor authentication methods in an array.
integer | $userId | The user ID to load the forms for (optional) |
|
protected |
Method to get the data that should be injected in the form.
Références $data, et Joomla\CMS\MVC\Model\preprocessData().
|
protected |
Method to auto-populate the model state.
Note. Calling getState in this method will result in recursion.
Références $params, $userId, Factory\getApplication(), Factory\getUser(), et Joomla\CMS\MVC\Model\setState().
|
protected |
Override preprocessForm to load the user plugin group instead of content.
Form | $form | A Form object. |
mixed | $data | The data expected for the form. |
string | $group | The name of the plugin group to import (defaults to "content"). |
Références $data, $form, ComponentHelper\getParams(), Factory\getUser(), et Joomla\CMS\MVC\Model\preprocessForm().
save | ( | $data | ) |
Method to save the form data.
array | $data | The form data. |
Références $data, $user, $userId, PunycodeHelper\emailToPunycode(), Access\getGroupsByUser(), ComponentHelper\getParams(), Joomla\CMS\MVC\Model\getState(), et PluginHelper\importPlugin().
|
protected |