MediaWiki  1.23.6
PPFuzzUser Class Reference
Inheritance diagram for PPFuzzUser:
Collaboration diagram for PPFuzzUser:

Public Member Functions

 getOption ( $oname, $defaultOverride=null, $ignoreHidden=false)
 Get the user's current setting for a given option. More...
 
 load ()
 Load the user table data for this object from the source given by mFrom. More...
 
- Public Member Functions inherited from User
 __construct ()
 Lightweight constructor for an anonymous user. More...
 
 __toString ()
 
 loadFromId ()
 Load user table data, given mId has already been set. More...
 
 saveToCache ()
 Save user data to the shared cache. More...
 
 isValidPassword ( $password)
 Is the input a valid password for this user? More...
 
 getPasswordValidity ( $password)
 Given unvalidated password input, return error message on failure. More...
 
 checkPasswordValidity ( $password)
 Check if this is a valid password for this user. More...
 
 expirePassword ( $ts=0)
 Expire a user's password. More...
 
 resetPasswordExpiration ( $load=true)
 Clear the password expiration for a user. More...
 
 getPasswordExpired ()
 Check if the user's password is expired. More...
 
 getPasswordExpireDate ()
 Get this user's password expiration date. More...
 
 loadDefaults ( $name=false)
 Set cached properties to default. More...
 
 isItemLoaded ( $item, $all='all')
 Return whether an item has been loaded. More...
 
 loadFromDatabase ()
 Load user and user_group data from the database. More...
 
 loadFromRow ( $row, $data=null)
 Initialize this object from a row from the user table. More...
 
 addAutopromoteOnceGroups ( $event)
 Add the user to the group if he/she meets given criteria. More...
 
 clearInstanceCache ( $reloadFrom=false)
 Clear various cached data stored in this object. More...
 
 isDnsBlacklisted ( $ip, $checkWhitelist=false)
 Whether the given IP is in a DNS blacklist. More...
 
 inDnsBlacklist ( $ip, $bases)
 Whether the given IP is in a given DNS blacklist. More...
 
 isPingLimitable ()
 Is this user subject to rate limiting? More...
 
 pingLimiter ( $action='edit', $incrBy=1)
 Primitive rate limits: enforce maximum actions per time period to put a brake on flooding. More...
 
 isBlocked ( $bFromSlave=true)
 Check if user is blocked. More...
 
 getBlock ( $bFromSlave=true)
 Get the block affecting the user, or null if the user is not blocked. More...
 
 isBlockedFrom ( $title, $bFromSlave=false)
 Check if user is blocked from editing a particular 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...
 
 getBlockId ()
 If user is blocked, return the ID for the block. More...
 
 isBlockedGlobally ( $ip='')
 Check if user is blocked on all wikis. More...
 
 isLocked ()
 Check if user account is locked. More...
 
 isHidden ()
 Check if user account is hidden. More...
 
 getId ()
 Get the user's ID. More...
 
 setId ( $v)
 Set the user and reload all fields according to a given ID. More...
 
 getName ()
 Get the user name, or the IP of an anonymous user. More...
 
 setName ( $str)
 Set the user name. More...
 
 getTitleKey ()
 Get the user's name escaped by underscores. More...
 
 getNewtalk ()
 Check if the user has new messages. 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...
 
 setNewtalk ( $val, $curRev=null)
 Update the 'You have new messages!' status. More...
 
 invalidateCache ()
 Immediately touch the user data cache for this account. More...
 
 validateCache ( $timestamp)
 Validate the cache for this account. More...
 
 getTouched ()
 Get the user touched timestamp. More...
 
 setPassword ( $str)
 Set the password and reset the random token. More...
 
 setInternalPassword ( $str)
 Set the password and reset the random token unconditionally. More...
 
 getToken ( $forceCreation=true)
 Get the user's current token. More...
 
 setToken ( $token=false)
 Set the random token (used for persistent authentication) Called from loadDefaults() among other places. More...
 
 setNewpassword ( $str, $throttle=true)
 Set the password for a password reminder or new account email. More...
 
 isPasswordReminderThrottled ()
 Has password reminder email been sent within the last $wgPasswordReminderResendTime hours? More...
 
 getEmail ()
 Get the user's e-mail address. More...
 
 getEmailAuthenticationTimestamp ()
 Get the timestamp of the user's e-mail authentication. More...
 
 setEmail ( $str)
 Set the user's e-mail address. More...
 
 setEmailWithConfirmation ( $str)
 Set the user's e-mail address and a confirmation mail if needed. More...
 
 getRealName ()
 Get the user's real name. More...
 
 setRealName ( $str)
 Set the user's real name. More...
 
 getOptions ()
 Get all user's options. More...
 
 getBoolOption ( $oname)
 Get the user's current setting for a given option, as a boolean value. More...
 
 getIntOption ( $oname, $defaultOverride=0)
 Get the user's current setting for a given option, as an integer value. More...
 
 setOption ( $oname, $val)
 Set the given option for a user. More...
 
 getTokenFromOption ( $oname)
 Get a token stored in the preferences (like the watchlist one), resetting it if it's empty (and saving changes). More...
 
 resetTokenFromOption ( $oname)
 Reset a token stored in the preferences (like the watchlist one). More...
 
 getOptionKinds (IContextSource $context, $options=null)
 Return an associative array mapping preferences keys to the kind of a preference they're used for. More...
 
 resetOptions ( $resetKinds=array( 'registered', 'registered-multiselect', 'registered-checkmatrix', 'unused'), IContextSource $context=null)
 Reset certain (or all) options to the site defaults. More...
 
 getDatePreference ()
 Get the user's preferred date format. More...
 
 requiresHTTPS ()
 Determine based on the wiki configuration and the user's options, whether this user must be over HTTPS no matter what. More...
 
 getStubThreshold ()
 Get the user preferred stub threshold. More...
 
 getRights ()
 Get the permissions this user has. More...
 
 getGroups ()
 Get the list of explicit group memberships this user has. More...
 
 getEffectiveGroups ( $recache=false)
 Get the list of implicit group memberships this user has. More...
 
 getAutomaticGroups ( $recache=false)
 Get the list of implicit group memberships this user has. More...
 
 getFormerGroups ()
 Returns the groups the user has belonged to. More...
 
 getEditCount ()
 Get the user's edit count. More...
 
 addGroup ( $group)
 Add the user to the given group. More...
 
 removeGroup ( $group)
 Remove the user from the given group. More...
 
 isLoggedIn ()
 Get whether the user is logged in. More...
 
 isAnon ()
 Get whether the user is anonymous. More...
 
 isAllowedAny ()
 Check if user is allowed to access a feature / make an action. More...
 
 isAllowedAll ()
 Is the input a valid password for this user? More...
 
 isAllowed ( $action='')
 Internal mechanics of testing a permission. More...
 
 useRCPatrol ()
 Check whether to enable recent changes patrol features for this user. More...
 
 useNPPatrol ()
 Check whether to enable new pages patrol features for this user. More...
 
 getRequest ()
 Get the WebRequest object to use with this object. More...
 
 getSkin ()
 Get the current skin, loading it if required. More...
 
 getWatchedItem ( $title, $checkRights=WatchedItem::CHECK_USER_RIGHTS)
 Get a WatchedItem for this user and $title. More...
 
 isWatched ( $title, $checkRights=WatchedItem::CHECK_USER_RIGHTS)
 Check the watched status of an article. More...
 
 addWatch ( $title, $checkRights=WatchedItem::CHECK_USER_RIGHTS)
 Watch an article. More...
 
 removeWatch ( $title, $checkRights=WatchedItem::CHECK_USER_RIGHTS)
 Stop watching an article. More...
 
 clearNotification (&$title, $oldid=0)
 Clear the user's notification timestamp for the given title. More...
 
 clearAllNotifications ()
 Resets all of the given user's page-change notification timestamps. More...
 
 setCookies ( $request=null, $secure=null, $rememberMe=false)
 Set the default cookies for this session on the user's client. More...
 
 logout ()
 Log this user out. More...
 
 doLogout ()
 Clear the user's cookies and session, and reset the instance cache. More...
 
 saveSettings ()
 Save this user's settings into the database. More...
 
 idForName ()
 If only this user's username is known, and it exists, return the user ID. More...
 
 addToDatabase ()
 Add this existing user object to the database. More...
 
 spreadAnyEditBlock ()
 If this user is logged-in and blocked, block any IP address they've successfully logged in from. 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...
 
 isAllowedToCreateAccount ()
 Get whether the user is allowed to create an account. More...
 
 getUserPage ()
 Get this user's personal page title. More...
 
 getTalkPage ()
 Get this user's talk page title. More...
 
 isNewbie ()
 Determine whether the user is a newbie. More...
 
 checkPassword ( $password)
 Check to see if the given clear-text password is one of the accepted passwords. More...
 
 checkTemporaryPassword ( $plaintext)
 Check if the given clear-text password matches the temporary password sent by e-mail for password reset operations. More...
 
 editToken ( $salt='', $request=null)
 Alias for getEditToken. 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...
 
 matchEditToken ( $val, $salt='', $request=null)
 Check given value against the token value stored in the session. More...
 
 matchEditTokenNoSuffix ( $val, $salt='', $request=null)
 Check given value against the token value stored in the session, ignoring the suffix. 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...
 
 confirmEmail ()
 Mark the e-mail address confirmed. More...
 
 invalidateEmail ()
 Invalidate the user's e-mail confirmation, and unauthenticate the e-mail address if it was already confirmed. More...
 
 setEmailAuthenticationTimestamp ( $timestamp)
 Set the e-mail authentication timestamp. More...
 
 canSendEmail ()
 Is this user allowed to send e-mails within limits of current site configuration? More...
 
 canReceiveEmail ()
 Is this user allowed to receive e-mails within limits of current site configuration? More...
 
 isEmailConfirmed ()
 Is this user's e-mail address valid-looking and confirmed within limits of the current site configuration? More...
 
 isEmailConfirmationPending ()
 Check whether there is an outstanding request for e-mail confirmation. More...
 
 getRegistration ()
 Get the timestamp of account creation. More...
 
 getFirstEditTimestamp ()
 Get the timestamp of the first edit. More...
 
 changeableGroups ()
 Returns an array of groups that this user can add and remove. More...
 
 incEditCount ()
 Increment the user's edit-count field. 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...
 

Public Attributes

 $mDataLoaded
 
 $ppfz_test
 
- Public Attributes inherited from User
const EDIT_TOKEN_SUFFIX = EDIT_TOKEN_SUFFIX
 
const MAX_WATCHED_ITEMS_CACHE = 100
 Maximum items in $mWatchedItems. More...
 
const MW_USER_VERSION = MW_USER_VERSION
 
const USER_TOKEN_LENGTH = USER_TOKEN_LENGTH
 Global constants made accessible as class constants so that autoloader magic can be used. More...
 
 $mId
 Bool Whether the cache variables have been loaded. More...
 
 $mName
 Bool Whether the cache variables have been loaded. More...
 
 $mRealName
 Bool Whether the cache variables have been loaded. More...
 
 $mPassword
 Bool Whether the cache variables have been loaded. More...
 
 $mNewpassword
 Bool Whether the cache variables have been loaded. More...
 
 $mNewpassTime
 Bool Whether the cache variables have been loaded. More...
 
 $mEmail
 Bool Whether the cache variables have been loaded. More...
 
 $mTouched
 Bool Whether the cache variables have been loaded. More...
 
 $mToken
 Bool Whether the cache variables have been loaded. More...
 
 $mEmailAuthenticated
 Bool Whether the cache variables have been loaded. More...
 
 $mEmailToken
 Bool Whether the cache variables have been loaded. More...
 
 $mEmailTokenExpires
 Bool Whether the cache variables have been loaded. More...
 
 $mRegistration
 Bool Whether the cache variables have been loaded. More...
 
 $mEditCount
 Bool Whether the cache variables have been loaded. More...
 
 $mGroups
 Bool Whether the cache variables have been loaded. More...
 
 $mOptionOverrides
 Bool Whether the cache variables have been loaded. More...
 
 $mOptionsLoaded
 Bool Whether the cache variables have been loaded. More...
 
 $mFrom
 String Initialization data source if mLoadedItems!==true. More...
 
 $mNewtalk
 Lazy-initialized variables, invalidated with clearInstanceCache. More...
 
 $mDatePreference
 Bool Whether the cache variables have been loaded. More...
 
 $mBlockedby
 Bool Whether the cache variables have been loaded. More...
 
 $mHash
 Bool Whether the cache variables have been loaded. More...
 
 $mRights
 Bool Whether the cache variables have been loaded. More...
 
 $mBlockreason
 Bool Whether the cache variables have been loaded. More...
 
 $mEffectiveGroups
 Bool Whether the cache variables have been loaded. More...
 
 $mImplicitGroups
 Bool Whether the cache variables have been loaded. More...
 
 $mFormerGroups
 Bool Whether the cache variables have been loaded. More...
 
 $mBlockedGlobally
 Bool Whether the cache variables have been loaded. More...
 
 $mLocked
 Bool Whether the cache variables have been loaded. More...
 
 $mHideName
 Bool Whether the cache variables have been loaded. More...
 
 $mOptions
 Bool Whether the cache variables have been loaded. More...
 
Block $mBlock
 Bool Whether the cache variables have been loaded. More...
 
bool $mAllowUsertalk
 Bool Whether the cache variables have been loaded. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from User
static newFromName ( $name, $validate='valid')
 Static factory method for creation from username. More...
 
static newFromId ( $id)
 Static factory method for creation from a given user ID. More...
 
static newFromConfirmationCode ( $code)
 Factory method to fetch whichever user has a given email confirmation code. More...
 
static newFromSession (WebRequest $request=null)
 Create a new user object using data from session or cookies. More...
 
static newFromRow ( $row, $data=null)
 Create a new user object from a user row. More...
 
static whoIs ( $id)
 Get the username corresponding to a given user ID. More...
 
static whoIsReal ( $id)
 Get the real name of a user given their user ID. More...
 
static idFromName ( $name)
 Get database id given a user name. More...
 
static resetIdByNameCache ()
 Reset the cache used in idFromName(). More...
 
static isIP ( $name)
 Does the string match an anonymous IPv4 address? More...
 
static isValidUserName ( $name)
 Is the input a valid username? More...
 
static isUsableName ( $name)
 Usernames which fail to pass this function will be blocked from user login and new account registrations, but may be used internally by batch processes. More...
 
static isCreatableName ( $name)
 Usernames which fail to pass this function will be blocked from new account registrations, but may be used internally either by batch processes or by user accounts which have already been created. More...
 
static isValidEmailAddr ( $addr)
 Does a string look like an e-mail address? More...
 
static getCanonicalName ( $name, $validate='valid')
 Given unvalidated user input, return a canonical username, or false if the username is invalid. More...
 
static edits ( $uid)
 Count the number of edits of a user. More...
 
static randomPassword ()
 Return a random password. More...
 
static getDefaultOptions ()
 Combine the language default options with any site-specific options and add the default language variants. More...
 
static getDefaultOption ( $opt)
 Get a given default option value. More...
 
static isLocallyBlockedProxy ( $ip)
 Check if an IP address is in the local proxy list. More...
 
static listOptionKinds ()
 Return a list of the types of user options currently returned by User::getOptionKinds(). More...
 
static createNew ( $name, $params=array())
 Add a user to the database, return the user object. More...
 
static generateToken ()
 Generate a looking random token for various uses. More...
 
static getGroupPermissions ( $groups)
 Get the permissions associated with a given list of groups. More...
 
static getGroupsWithPermission ( $role)
 Get all the groups who have a given permission. More...
 
static groupHasPermission ( $group, $role)
 Check, if the given group has the given permission. More...
 
static isEveryoneAllowed ( $right)
 Check if all users have the given permission. More...
 
static getGroupName ( $group)
 Get the localized descriptive name for a group, if it exists. More...
 
static getGroupMember ( $group, $username='#')
 Get the localized descriptive name for a member of a group, if it exists. More...
 
static getAllGroups ()
 Return the set of defined explicit groups. More...
 
static getAllRights ()
 Get a list of all available permissions. More...
 
static getImplicitGroups ()
 Get a list of implicit groups. More...
 
static getGroupPage ( $group)
 Get the title of a page describing a particular group. More...
 
static makeGroupLinkHTML ( $group, $text='')
 Create a link to the group in HTML, if available; else return the group name. More...
 
static makeGroupLinkWiki ( $group, $text='')
 Create a link to the group in Wikitext, if available; else return the group name. More...
 
static changeableByGroup ( $group)
 Returns an array of the groups that a particular group can add/remove. More...
 
static getRightDescription ( $right)
 Get the description of a given right. More...
 
static oldCrypt ( $password, $userId)
 Make an old-style password hash. More...
 
static crypt ( $password, $salt=false)
 Make a new-style password hash. More...
 
static comparePasswords ( $hash, $password, $userId=false)
 Compare a password hash with a plain-text password. More...
 
static passwordChangeInputAttribs ()
 Provide an array of HTML5 attributes to put on an input element intended for the user to enter a new password. More...
 
static selectFields ()
 Return the list of user fields that should be selected to create a new user object. More...
 
static newFatalPermissionDeniedStatus ( $permission)
 Factory function for fatal permission-denied errors. More...
 
- Static Public Attributes inherited from User
static $mAllRights = false
 String Cached results of getAllRights() More...
 
static $mCacheVars
 Array of Strings List of member variables which are saved to the shared cache (memcached). More...
 
static $mCoreRights
 Array of Strings Core rights. More...
 
static $idCacheByName = array()
 Bool Whether the cache variables have been loaded. More...
 
- Protected Member Functions inherited from User
 setItemLoaded ( $item)
 Set that an item has been loaded. More...
 
 compareSecrets ( $answer, $test)
 A comparison of two strings, not vulnerable to timing attacks. More...
 
 loadFromUserObject ( $user)
 Load the data for this user object from another user object. More...
 
 checkNewtalk ( $field, $id, $fromMaster=false)
 Internal uncached check for new messages. More...
 
 updateNewtalk ( $field, $id, $curRev=null)
 Add or update the new messages flag. More...
 
 deleteNewtalk ( $field, $id)
 Clear the new messages flag for the given user. More...
 
 setCookie ( $name, $value, $exp=0, $secure=null, $params=array())
 Set a cookie on the user's client. More...
 
 clearCookie ( $name, $secure=null, $params=array())
 Clear a cookie on the user's client. More...
 
 spreadBlock ()
 If this (non-anonymous) user is blocked, block the IP address they've successfully logged in from. More...
 
 confirmationToken (&$expiration)
 Generate, store, and return a new e-mail confirmation code. More...
 
 confirmationTokenUrl ( $token)
 Return a URL the user can use to confirm their email address. More...
 
 invalidationTokenUrl ( $token)
 Return a URL the user can use to invalidate their email address. More...
 
 getTokenUrl ( $page, $token)
 Internal function to format the e-mail validation/invalidation URLs. More...
 
 initEditCount ( $add=0)
 Initialize user_editcount from data out of the revision table. More...
 
 loadOptions ( $data=null)
 Load the user options either from cache, the database or an array. More...
 
 saveOptions ()
 
- Protected Attributes inherited from User
 $mPasswordExpires
 Bool Whether the cache variables have been loaded. More...
 

Detailed Description

Definition at line 221 of file preprocessorFuzzTest.php.

Member Function Documentation

◆ getOption()

PPFuzzUser::getOption (   $oname,
  $defaultOverride = null,
  $ignoreHidden = false 
)

Get the user's current setting for a given option.

Parameters
string$onameThe option to check
string$defaultOverrideA default value returned if the option does not exist
bool$ignoreHiddenWhether to ignore the effects of $wgHiddenPrefs
Returns
string User's current value for the option
See also
getBoolOption()
getIntOption()

Reimplemented from User.

Definition at line 232 of file preprocessorFuzzTest.php.

◆ load()

PPFuzzUser::load ( )

Load the user table data for this object from the source given by mFrom.

Reimplemented from User.

Definition at line 224 of file preprocessorFuzzTest.php.

References User\loadDefaults().

Member Data Documentation

◆ $mDataLoaded

PPFuzzUser::$mDataLoaded

Definition at line 222 of file preprocessorFuzzTest.php.

◆ $ppfz_test

PPFuzzUser::$ppfz_test

Definition at line 222 of file preprocessorFuzzTest.php.


The documentation for this class was generated from the following file: