![]() Reset a token stored in the preferences (like the watchlist one). More.ĭetermine based on the wiki configuration and the user's options, whether this user must be over HTTPS no matter what. Probabl圜an (string $action, PageIdentity $target, PermissionStatus $status=null) Primitive rate limits: enforce maximum actions per time period to put a brake on flooding. MatchEditToken ( $val, $salt='', $request=null, $maxage=null)Ĭheck given value against the token value stored in the session. Load user table data, given mId has already been set. LoadFromDatabase ( $flags=self::READ_LATEST) LoadDefaults ( $name=false, $actorId=null) Load the user table data for this object from the source given by mFrom. Is the input a valid password for this user? More. Is the user an autocreated temporary user? More. Test if it's safe to load this User object. Is this user subject to rate limiting? More. Is the user a normal non-temporary registered user? More.ĭetermine whether the user is a newbie. Is this user's e-mail address valid-looking and confirmed within limits of the current site configuration? More. More.Ĭheck whether there is an outstanding request for e-mail confirmation. Get whether the user is blocked from using Special:Upload. Get whether the user is blocked from using Special:Emailuser. Get whether the user is explicitly blocked from account creation. ![]() IsBlockedFrom ( $title, $fromReplica=false)Ĭheck if user is blocked from editing a particular article. Get whether the user is allowed to create an account. More.Ĭhecks whether this authority has any of the given permissions in general. More.Ĭhecks whether this authority has the given permission in general. Invalidate the user's e-mail confirmation, and unauthenticate the e-mail address if it was already confirmed. Immediately touch the user data cache for this account. Schedule a deferred update to update the user's edit count. If only this user's username is known, and it exists, return the user ID. ![]() Returns self::LOCAL to indicate the user is associated with the local wiki. Get a token stored in the preferences (like the watchlist one), resetting it if it's empty (and saving changes). Get the user's name escaped by underscores. Get the WebRequest object to use with this object. Get the user's current setting for a given option. GetOption ( $oname, $defaultOverride=null, $ignoreHidden=false) Get the user name, or the IP of an anonymous user. Get a new instance of this user that was loaded from the primary DB via a locking read. Get the list of explicit group memberships this user has. Get the list of explicit group memberships this user has, stored as UserGroupMembership objects. More.Ĭheck if user is blocked on all wikis. More.Ĭompute experienced level based on edit count and registration date. Get the timestamp of the user's e-mail authentication. GetEditTokenObject ( $salt='', $request=null) Initialize (if necessary) and return a session token value which can be used in edit forms to show that the user's login credentials aren't being hijacked with a foreign form submission. Get the user_touched timestamp field (time of last DB updates) More. Get the block affecting the user, or null if the user is not blocked. GetBlock ( $freshness=self::READ_NORMAL, $disableIpBlockExemptChecking=false) More.Ĭhecks if two user objects point to the same user. More.ĭefinitel圜an (string $action, PageIdentity $target, PermissionStatus $status=null)Ĭlear the user's session, and reset the instance cache. More.Ĭlear various cached data stored in this object. More.Ĭheck if this is a valid password for this user. Is this user allowed to receive e-mails within limits of current site configuration? More.īump user_touched if it didn't change since this object was loaded. If user is blocked, return the specified reason for the block. More.ĪuthorizeRead (string $action, PageIdentity $target, PermissionStatus $status=null)ĪuthorizeWrite (string $action, PageIdentity $target, PermissionStatus $status=null) More.Īdd this existing user object to the database. Lightweight constructor for an anonymous user.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |