Manual:User.php/fr

Description
User.php implements the User class, which encapsulates all of the user-specific settings (user_id, name, rights, email address, options, last login time). Client classes use the  functions to access these fields. These functions do all the work of determining whether the user is logged in, whether the requested option can be satisfied from cookies or whether a database query is needed. Most of the settings needed for rendering normal pages are set in the cookie to minimize use of the database.

uses,  , and.

The User class used to contain password handling, but it was removed with the introduction of AuthManager.

Autres méthodes
Il existe encore beaucoup d'autres hôtes. Voir https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html pour la liste complète.


 * : Get the user's ID. Returns 0 if the user is anonymous or nonexistent.
 * : Get the user name, or the IP of an anonymous user.
 * : Obtenir l'adresse courriel de l'utilisateur.
 * : Get the list of explicit group memberships this user has. (Le '*' implicite ainsi que les groupes utilisateur, ne sont pas inclus.)
 * : Obtenir les droits de cet utilisateur.

Voir aussi

 * - gobjet global 'user' (obsolète)
 * Manuel:RequestContext - utilisé pour obtenir l'instance User associée à la requête.
 * Manual:Central ID
 * Manuel:Code
 * Category:MediaWiki hooks included in User.php
 * Category:MediaWiki hooks included in User.php