![]() MatchEditToken ($val, $salt= '', $request=null)Ĭheck given value against the token value stored in the session. Initialize this object from a row from the user table. Load user table data, given mId has already been set. Load user and user_group data from the database. Load the user table data for this object from the source given by mFrom. Is the input a valid password for this user? Has password reminder email been sent within the last $wgPasswordReminderResendTime hours? Is this user's e-mail address valid-looking and confirmed within limits of the current site configuration? ![]() Whether the given IP is in a DNS blacklist.Ĭheck whether there is an outstanding request for e-mail confirmation. IsDnsBlacklisted ($ip, $checkWhitelist= false) Get whether the user is blocked from using Special:Emailuser. Get whether the user is explicitly blocked from account creation. IsBlockedFrom ($title, $bFromSlave= false)Ĭheck if user is blocked from editing a particular article. Get whether the user is allowed to create an account. Internal mechanics of testing a permission.Ĭheck if user is allowed to access a feature / make an action. 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. Whether the given IP is in a given DNS blacklist. If only this user's username is known, and it exists, return the user ID. Get the user's name escaped by underscores. Get the current skin, loading it if required. Get the WebRequest object to use with this object. Given unvalidated password input, return error message on failure. Generate a string which will be different for any combination of user options which would produce different parser output. Get the user's current setting for a given option. GetOption ($oname, $defaultOverride=null, $ignoreHidden= false) Return the talk page(s) this user has new messages on. Get the user name, or the IP of an anonymous user. GetIntOption ($oname, $defaultOverride=0) Get the list of explicit group memberships this user has. Returns the groups the user has belonged to. Get the timestamp of the user's e-mail authentication. 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's current setting for a given option, as a boolean value. ![]() If user is blocked, return the ID for the block. Get the block affecting the user, or null if the user is not blocked. Get the list of implicit group memberships this user has. ![]() Resets all of the given user's page-change notification timestamps.Ĭlear various cached data stored in this object.Ĭlear the user's notification timestamp for the given title.Ĭlear the user's cookies and session, and reset the instance cache. Returns an array of groups that this user can add and remove.Ĭheck to see if the given clear-text password is one of the accepted passwords.Ĭheck if the given clear-text password matches the temporary password sent by e-mail for password reset operations. ![]() Is this user allowed to send e-mails within limits of current site configuration? Is this user allowed to receive e-mails within limits of current site configuration? If user is blocked, return the specified reason for the block. If user is blocked, return the name of the user who placed the block. Lightweight constructor for an anonymous user.Īdd the user to the group if he/she meets given criteria.ĪddNewUserLogEntry ($byEmail= false, $reason= '')Īdd an autocreate newuser log entry for this user Used by things like CentralAuth and perhaps other authplugins.Īdd this existing user object to the database. ![]()
0 Comments
Leave a Reply. |