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 User
+ Graphe d'héritage de User:

Fonctions membres publiques

 __construct ($db)
 
 load ($userId=null, $reset=true)
 
 bind ($array, $ignore='')
 
 check ()
 
 store ($updateNulls=false)
 
 delete ($userId=null)
 
 setLastVisit ($timeStamp=null, $userId=null)
 
- Fonctions membres publiques hérités de Table
 __construct ($table, $key, $db)
 
 attachObserver (\JObserverInterface $observer)
 
 getObserverOfClass ($observerClass)
 
 getFields ($reload=false)
 
 appendPrimaryKeys ($query, $pk=null)
 
 getTableName ()
 
 getKeyName ($multiple=false)
 
 getDbo ()
 
 setDbo ($db)
 
 setRules ($input)
 
 getRules ()
 
 reset ()
 
 bind ($src, $ignore=array())
 
 load ($keys=null, $reset=true)
 
 check ()
 
 save ($src, $orderingFilter='', $ignore='')
 
 checkOut ($userId, $pk=null)
 
 checkIn ($pk=null)
 
 hasPrimaryKey ()
 
 hit ($pk=null)
 
 isCheckedOut ($with=0, $against=null)
 
 getNextOrder ($where='')
 
 getPrimaryKey (array $keys=array())
 
 reorder ($where='')
 
 move ($delta, $where='')
 
 publish ($pks=null, $state=1, $userId=0)
 
 getColumnAlias ($column)
 
 setColumnAlias ($column, $columnAlias)
 
 hasField ($key)
 
- Fonctions membres publiques hérités de JObservableInterface
 attachObserver (JObserverInterface $observer)
 

Champs de données

 $groups
 

Membres hérités additionnels

- Fonctions membres publiques statiques hérités de Table
static getInstance ($type, $prefix='JTable', $config=array())
 
static addIncludePath ($path=null)
 
- Fonctions membres protégées hérités de Table
 _getAssetName ()
 
 _getAssetTitle ()
 
 _lock ()
 
 _unlock ()
 
- Attributs protégés hérités de Table
 $_tbl = ''
 
 $_tbl_key = ''
 
 $_tbl_keys = array()
 
 $_db
 
 $_trackAssets = false
 
 $_rules
 
 $_locked = false
 
 $_autoincrement = true
 
 $_observers
 
 $_columnAlias = array()
 
 $_jsonEncode = array()
 
 $_supportNullValue = false
 

Description détaillée

Users table

Depuis
1.7.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $db)

Constructor

Paramètres
\JDatabaseDriver$dbDatabase driver object.
Depuis
1.7.0

Références $db.

Documentation des fonctions membres

◆ bind()

bind (   $array,
  $ignore = '' 
)

Method to bind the user, user groups, and any other necessary data.

Paramètres
array$arrayThe data to bind.
mixed$ignoreAn array or space separated list of fields to ignore.
Renvoie
boolean True on success, false on failure.
Depuis
1.7.0

Références $groups, $query, $return, et ArrayHelper\toInteger().

◆ check()

check ( )

Validation and filtering

Renvoie
boolean True if satisfactory
Depuis
1.7.0

Références $config, $query, et null.

◆ delete()

delete (   $userId = null)

Method to delete a user, user groups, and any other necessary data from the database.

Paramètres
integer$userIdAn optional user id.
Renvoie
boolean True on success, false on failure.
Depuis
1.7.0

Références $query, et $userId.

◆ load()

load (   $userId = null,
  $reset = true 
)

Method to load a user, user groups, and any other necessary data from the database so that it can be bound to the user object.

Paramètres
integer$userIdAn optional user id.
boolean$resetFalse if row not found or on error (internal error state set in that case).
Renvoie
boolean True on success, false on failure.
Depuis
1.7.0

Références $data, $id, $query, $return, $userId, et null.

◆ setLastVisit()

setLastVisit (   $timeStamp = null,
  $userId = null 
)

Updates last visit time of user

Paramètres
integer$timeStampThe timestamp, defaults to 'now'.
integer$userIdThe user id (optional).
Renvoie
boolean False if an error occurs
Depuis
1.7.0

Références $date, $db, $id, $query, $userId, et null.

◆ store()

store (   $updateNulls = false)

Method to store a row in the database from the Table instance properties.

If a primary key value is set the row with that primary key value will be updated with the instance property values. If no primary key value is set a new row will be inserted into the database with the properties from the Table instance.

Paramètres
boolean$updateNullsTrue to update fields even if they are null.
Renvoie
boolean True on success.
Depuis
1.7.0

Références $groups, $key, $query, et block.

Documentation des champs

◆ $groups

$groups

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