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é
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe AdminModelProfile
+ Graphe d'héritage de AdminModelProfile:

Fonctions membres publiques

 getForm ($data=array(), $loadData=true)
 
 getItem ($pk=null)
 
 save ($data)
 
 getTwofactorform ($userId=null)
 
 getOtpConfig ($userId=null)
 
 setOtpConfig ($userId, $otpConfig)
 
 generateOteps ($userId, $count=10)
 
- Fonctions membres publiques hérités de UsersModelUser
 __construct ($config=array())
 
 getTable ($type='User', $prefix='JTable', $config=array())
 
 getItem ($pk=null)
 
 getForm ($data=array(), $loadData=true)
 
 save ($data)
 
 delete (&$pks)
 
 block (&$pks, $value=1)
 
 activate (&$pks)
 
 batch ($commands, $pks, $contexts)
 
 batchReset ($userIds, $action)
 
 batchUser ($groupId, $userIds, $action)
 
 getGroups ()
 
 getAssignedGroups ($userId=null)
 
 getOtpConfig ($userId=null)
 
 setOtpConfig ($userId, $otpConfig)
 
 getOtpConfigEncryptionKey ()
 
 getTwofactorform ($userId=null)
 
 generateOteps ($userId, $count=10)
 
 isValidSecretKey ($userId, $secretKey, $options=array())
 
 isValidOtep ($userId, $otep, $otpConfig=null)
 

Fonctions membres protégées

 loadFormData ()
 
- Fonctions membres protégées hérités de UsersModelUser
 loadFormData ()
 
 preprocessForm (JForm $form, $data, $group='user')
 

Membres hérités additionnels

- Attributs protégés hérités de UsersModelUser
 $_item = null
 

Description détaillée

User model.

Depuis
1.6

Documentation des fonctions membres

◆ generateOteps()

generateOteps (   $userId,
  $count = 10 
)

Generates a new set of One Time Emergency Passwords (OTEPs) for a given user.

Paramètres
integer$userIdThe user ID
integer$countHow many OTEPs to generate? Default: 10
Renvoie
array The generated OTEPs
Depuis
DEPOLOY_VERSION

Références $count, $userId, et UsersModelUser\generateOteps().

◆ getForm()

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

Method to get the record form.

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

Références $form.

◆ getItem()

getItem (   $pk = null)

Method to get a single record.

Paramètres
integer$pkThe id of the primary key.
Renvoie
mixed Object on success, false on failure.
Depuis
1.6

◆ getOtpConfig()

getOtpConfig (   $userId = null)

Returns the one time password (OTP) – a.k.a. two factor authentication – configuration for a particular user.

Paramètres
integer$userIdThe numeric ID of the user
Renvoie
stdClass An object holding the OTP configuration for this user
Depuis
DEPOLOY_VERSION

Références $userId, et UsersModelUser\getOtpConfig().

◆ getTwofactorform()

getTwofactorform (   $userId = null)

Gets the configuration forms for all two-factor authentication methods in an array.

Paramètres
integer$userIdThe user ID to load the forms for (optional)
Renvoie
array
Depuis
DEPOLOY_VERSION

Références $userId, et UsersModelUser\getTwofactorform().

◆ loadFormData()

loadFormData ( )
protected

Method to get the data that should be injected in the form.

Renvoie
mixed The data for the form.
Depuis
1.6

Références $data.

◆ save()

save (   $data)

Method to save the form data.

Paramètres
array$dataThe form data.
Renvoie
boolean True on success.
Depuis
1.6

Références $data, $user, FOFPlatform\getInstance(), et null.

◆ setOtpConfig()

setOtpConfig (   $userId,
  $otpConfig 
)

Sets the one time password (OTP) – a.k.a. two factor authentication – configuration for a particular user. The $otpConfig object is the same as the one returned by the getOtpConfig method.

Paramètres
integer$userIdThe numeric ID of the user
stdClass$otpConfigThe OTP configuration object
Renvoie
boolean True on success
Depuis
DEPOLOY_VERSION

Références $userId, et UsersModelUser\setOtpConfig().


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