|
| getOption ($oname, $defaultOverride=null, $ignoreHidden=false) |
|
| load () |
|
| __construct () |
| Lightweight constructor for an anonymous user. More...
|
|
| __toString () |
|
| addAutopromoteOnceGroups ($event) |
| Add the user to the group if he/she meets given criteria. More...
|
|
| addGroup ($group) |
| Add the user to the given group. More...
|
|
| addNewUserLogEntry ($action=false, $reason= '') |
| Add a newuser log entry for this user. More...
|
|
| addNewUserLogEntryAutoCreate () |
| Add an autocreate newuser log entry for this user Used by things like CentralAuth and perhaps other authplugins. More...
|
|
| addToDatabase () |
| Add this existing user object to the database. More...
|
|
| addWatch ($title, $checkRights=self::CHECK_USER_RIGHTS) |
| Watch an article. More...
|
|
| blockedBy () |
| If user is blocked, return the name of the user who placed the block. More...
|
|
| blockedFor () |
| If user is blocked, return the specified reason for the block. More...
|
|
| canReceiveEmail () |
| Is this user allowed to receive e-mails within limits of current site configuration? More...
|
|
| canSendEmail () |
| Is this user allowed to send e-mails within limits of current site configuration? More...
|
|
| changeableGroups () |
| Returns an array of groups that this user can add and remove. More...
|
|
| changeAuthenticationData (array $data) |
| Changes credentials of the user. More...
|
|
| checkPassword ($password) |
| Check to see if the given clear-text password is one of the accepted passwords. More...
|
|
| checkPasswordValidity ($password, $purpose= 'login') |
| Check if this is a valid password for this user. More...
|
|
| checkTemporaryPassword ($plaintext) |
| Check if the given clear-text password matches the temporary password sent by e-mail for password reset operations. More...
|
|
| clearAllNotifications () |
| Resets all of the given user's page-change notification timestamps. More...
|
|
| clearInstanceCache ($reloadFrom=false) |
| Clear various cached data stored in this object. More...
|
|
| clearNotification (&$title, $oldid=0) |
| Clear the user's notification timestamp for the given title. More...
|
|
| clearSharedCache ($mode= 'changed') |
| Clear user data from memcached. More...
|
|
| confirmEmail () |
| Mark the e-mail address confirmed. More...
|
|
| doLogout () |
| Clear the user's session, and reset the instance cache. More...
|
|
| equals (User $user) |
| Checks if two user objects point to the same user. More...
|
|
| getAutomaticGroups ($recache=false) |
| Get the list of implicit group memberships this user has. More...
|
|
| getBlock ($bFromSlave=true) |
| Get the block affecting the user, or null if the user is not blocked. More...
|
|
| getBlockId () |
| If user is blocked, return the ID for the block. More...
|
|
| getBoolOption ($oname) |
| Get the user's current setting for a given option, as a boolean value. More...
|
|
| getDatePreference () |
| Get the user's preferred date format. More...
|
|
| getDBTouched () |
| Get the user_touched timestamp field (time of last DB updates) More...
|
|
| getEditCount () |
| Get the user's edit count. More...
|
|
| getEditToken ($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. More...
|
|
| 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. More...
|
|
| getEffectiveGroups ($recache=false) |
| Get the list of implicit group memberships this user has. More...
|
|
| getEmail () |
| Get the user's e-mail address. More...
|
|
| getEmailAuthenticationTimestamp () |
| Get the timestamp of the user's e-mail authentication. More...
|
|
| getFirstEditTimestamp () |
| Get the timestamp of the first edit. More...
|
|
| getFormerGroups () |
| Returns the groups the user has belonged to. More...
|
|
| getGlobalBlock ($ip= '') |
| Check if user is blocked on all wikis. More...
|
|
| getGroups () |
| Get the list of explicit group memberships this user has. More...
|
|
| getId () |
| Get the user's ID. More...
|
|
| getInstanceForUpdate () |
| Get a new instance of this user that was loaded from the master via a locking read. More...
|
|
| getIntOption ($oname, $defaultOverride=0) |
| Get the user's current setting for a given option, as an integer value. More...
|
|
| getName () |
| Get the user name, or the IP of an anonymous user. More...
|
|
| getNewMessageLinks () |
| Return the data needed to construct links for new talk page message alerts. More...
|
|
| getNewMessageRevisionId () |
| Get the revision ID for the last talk page revision viewed by the talk page owner. More...
|
|
| getNewtalk () |
| Check if the user has new messages. More...
|
|
| getOption ($oname, $defaultOverride=null, $ignoreHidden=false) |
| Get the user's current setting for a given option. More...
|
|
| getOptionKinds (IContextSource $context, $options=null) |
| Return an associative array mapping preferences keys to the kind of a preference they're used for. More...
|
|
| getOptions ($flags=0) |
| Get all user's options. More...
|
|
| getPassword () |
|
| getPasswordValidity ($password) |
| Given unvalidated password input, return error message on failure. More...
|
|
| getRealName () |
| Get the user's real name. More...
|
|
| getRegistration () |
| Get the timestamp of account creation. More...
|
|
| getRequest () |
| Get the WebRequest object to use with this object. More...
|
|
| getRights () |
| Get the permissions this user has. More...
|
|
| getStubThreshold () |
| Get the user preferred stub threshold. More...
|
|
| getTalkPage () |
| Get this user's talk page title. More...
|
|
| getTemporaryPassword () |
|
| getTitleKey () |
| Get the user's name escaped by underscores. More...
|
|
| getToken ($forceCreation=true) |
| Get the user's current token. More...
|
|
| getTokenFromOption ($oname) |
| Get a token stored in the preferences (like the watchlist one), resetting it if it's empty (and saving changes). More...
|
|
| getTouched () |
| Get the user touched timestamp. More...
|
|
| getUserPage () |
| Get this user's personal page title. More...
|
|
| idForName ($flags=0) |
| If only this user's username is known, and it exists, return the user ID. More...
|
|
| incEditCount () |
| Deferred version of incEditCountImmediate() More...
|
|
| incEditCountImmediate () |
| Increment the user's edit-count field. More...
|
|
| inDnsBlacklist ($ip, $bases) |
| Whether the given IP is in a given DNS blacklist. More...
|
|
| invalidateCache () |
| Immediately touch the user data cache for this account. More...
|
|
| invalidateEmail () |
| Invalidate the user's e-mail confirmation, and unauthenticate the e-mail address if it was already confirmed. More...
|
|
| isAllowed ($action= '') |
| Internal mechanics of testing a permission. More...
|
|
| isAllowedAll () |
|
| isAllowedAny () |
| Check if user is allowed to access a feature / make an action. More...
|
|
| isAllowedToCreateAccount () |
| Get whether the user is allowed to create an account. More...
|
|
| isAnon () |
| Get whether the user is anonymous. More...
|
|
| isBlocked ($bFromSlave=true) |
| Check if user is blocked. More...
|
|
| isBlockedFrom ($title, $bFromSlave=false) |
| Check if user is blocked from editing a particular article. More...
|
|
| isBlockedFromCreateAccount () |
| Get whether the user is explicitly blocked from account creation. More...
|
|
| isBlockedFromEmailuser () |
| Get whether the user is blocked from using Special:Emailuser. More...
|
|
| isBlockedGlobally ($ip= '') |
| Check if user is blocked on all wikis. More...
|
|
| isBot () |
|
| isDnsBlacklisted ($ip, $checkWhitelist=false) |
| Whether the given IP is in a DNS blacklist. More...
|
|
| isEmailConfirmationPending () |
| Check whether there is an outstanding request for e-mail confirmation. More...
|
|
| isEmailConfirmed () |
| Is this user's e-mail address valid-looking and confirmed within limits of the current site configuration? More...
|
|
| isHidden () |
| Check if user account is hidden. More...
|
|
| isItemLoaded ($item, $all= 'all') |
| Return whether an item has been loaded. More...
|
|
| isLocked () |
| Check if user account is locked. More...
|
|
| isLoggedIn () |
| Get whether the user is logged in. More...
|
|
| isNewbie () |
| Determine whether the user is a newbie. More...
|
|
| isPasswordReminderThrottled () |
| Has password reminder email been sent within the last $wgPasswordReminderResendTime hours? More...
|
|
| isPingLimitable () |
| Is this user subject to rate limiting? More...
|
|
| isSafeToLoad () |
| Test if it's safe to load this User object. More...
|
|
| isValidPassword ($password) |
| Is the input a valid password for this user? More...
|
|
| isWatched ($title, $checkRights=self::CHECK_USER_RIGHTS) |
| Check the watched status of an article. More...
|
|
| load ($flags=self::READ_NORMAL) |
| Load the user table data for this object from the source given by mFrom. More...
|
|
| loadDefaults ($name=false) |
| Set cached properties to default. More...
|
|
| loadFromDatabase ($flags=self::READ_LATEST) |
| Load user and user_group data from the database. More...
|
|
| loadFromId ($flags=self::READ_NORMAL) |
| Load user table data, given mId has already been set. More...
|
|
| logout () |
| Log this user out. More...
|
|
| matchEditToken ($val, $salt= '', $request=null, $maxage=null) |
| Check given value against the token value stored in the session. More...
|
|
| matchEditTokenNoSuffix ($val, $salt= '', $request=null, $maxage=null) |
| Check given value against the token value stored in the session, ignoring the suffix. More...
|
|
| pingLimiter ($action= 'edit', $incrBy=1) |
| Primitive rate limits: enforce maximum actions per time period to put a brake on flooding. More...
|
|
| removeGroup ($group) |
| Remove the user from the given group. More...
|
|
| removeWatch ($title, $checkRights=self::CHECK_USER_RIGHTS) |
| Stop watching an article. More...
|
|
| requiresHTTPS () |
| Determine based on the wiki configuration and the user's options, whether this user must be over HTTPS no matter what. More...
|
|
| resetOptions ($resetKinds=[ 'registered', 'registered-multiselect', 'registered-checkmatrix', 'unused'], IContextSource $context=null) |
| Reset certain (or all) options to the site defaults. More...
|
|
| resetTokenFromOption ($oname) |
| Reset a token stored in the preferences (like the watchlist one). More...
|
|
| saveSettings () |
| Save this user's settings into the database. More...
|
|
| sendConfirmationMail ($type= 'created') |
| Generate a new e-mail confirmation token and send a confirmation/invalidation mail to the user's given address. More...
|
|
| sendMail ($subject, $body, $from=null, $replyto=null) |
| Send an e-mail to this user's account. More...
|
|
| setCookies ($request=null, $secure=null, $rememberMe=false) |
| Persist this user's session (e.g. More...
|
|
| setEmail ($str) |
| Set the user's e-mail address. More...
|
|
| setEmailAuthenticationTimestamp ($timestamp) |
| Set the e-mail authentication timestamp. More...
|
|
| setEmailWithConfirmation ($str) |
| Set the user's e-mail address and a confirmation mail if needed. More...
|
|
| setId ($v) |
| Set the user and reload all fields according to a given ID. More...
|
|
| setInternalPassword ($str) |
| Set the password and reset the random token unconditionally. More...
|
|
| setName ($str) |
| Set the user name. More...
|
|
| setNewpassword ($str, $throttle=true) |
| Set the password for a password reminder or new account email. More...
|
|
| setNewtalk ($val, $curRev=null) |
| Update the 'You have new messages!' status. More...
|
|
| setOption ($oname, $val) |
| Set the given option for a user. More...
|
|
| setPassword ($str) |
| Set the password and reset the random token. More...
|
|
| setRealName ($str) |
| Set the user's real name. More...
|
|
| setToken ($token=false) |
| Set the random token (used for persistent authentication) Called from loadDefaults() among other places. More...
|
|
| spreadAnyEditBlock () |
| If this user is logged-in and blocked, block any IP address they've successfully logged in from. More...
|
|
| touch () |
| Update the "touched" timestamp for the user. More...
|
|
| useFilePatrol () |
| Check whether to enable new files patrol features for this user. More...
|
|
| useNPPatrol () |
| Check whether to enable new pages patrol features for this user. More...
|
|
| useRCPatrol () |
| Check whether to enable recent changes patrol features for this user. More...
|
|
| validateCache ($timestamp) |
| Validate the cache for this account. More...
|
|