BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
SMW\Tests\Utils\Mock\MockSuperUser Class Reference
Inheritance diagram for SMW\Tests\Utils\Mock\MockSuperUser:
Collaboration diagram for SMW\Tests\Utils\Mock\MockSuperUser:

Public Member Functions

 getId ()
 
 getName ()
 
 isAllowed ($right= '')
 
- Public Member Functions inherited from User
 __construct ()
 
 __toString ()
 
 isSafeToLoad ()
 
 load ($flags=self::READ_NORMAL)
 
 loadFromId ($flags=self::READ_NORMAL)
 
 getMutableCacheKeys (WANObjectCache $cache)
 
 isIPRange ()
 
 isValidPassword ($password)
 
 getPasswordValidity ($password)
 
 checkPasswordValidity ($password)
 
 loadDefaults ($name=false)
 
 isItemLoaded ($item, $all= 'all')
 
 loadFromDatabase ($flags=self::READ_LATEST)
 
 addAutopromoteOnceGroups ($event)
 
 clearInstanceCache ($reloadFrom=false)
 
 isDnsBlacklisted ($ip, $checkWhitelist=false)
 
 inDnsBlacklist ($ip, $bases)
 
 isPingLimitable ()
 
 pingLimiter ($action= 'edit', $incrBy=1)
 
 isBlocked ($bFromSlave=true)
 
 getBlock ($bFromSlave=true)
 
 isBlockedFrom ($title, $bFromSlave=false)
 
 blockedBy ()
 
 blockedFor ()
 
 getBlockId ()
 
 isBlockedGlobally ($ip= '')
 
 getGlobalBlock ($ip= '')
 
 isLocked ()
 
 isHidden ()
 
 getId ()
 
 setId ($v)
 
 getName ()
 
 setName ($str)
 
 getActorId (IDatabase $dbw=null)
 
 getTitleKey ()
 
 getNewtalk ()
 
 getNewMessageLinks ()
 
 setNewtalk ($val, $curRev=null)
 
 clearSharedCache ($mode= 'changed')
 
 invalidateCache ()
 
 touch ()
 
 validateCache ($timestamp)
 
 getTouched ()
 
 getDBTouched ()
 
 setPassword ($str)
 
 setInternalPassword ($str)
 
 changeAuthenticationData (array $data)
 
 getToken ($forceCreation=true)
 
 setToken ($token=false)
 
 setNewpassword ($str, $throttle=true)
 
 getEmail ()
 
 getEmailAuthenticationTimestamp ()
 
 setEmail ($str)
 
 setEmailWithConfirmation ($str)
 
 getRealName ()
 
 setRealName ($str)
 
 getOption ($oname, $defaultOverride=null, $ignoreHidden=false)
 
 getOptions ($flags=0)
 
 getBoolOption ($oname)
 
 getIntOption ($oname, $defaultOverride=0)
 
 setOption ($oname, $val)
 
 getTokenFromOption ($oname)
 
 resetTokenFromOption ($oname)
 
 getOptionKinds (IContextSource $context, $options=null)
 
 resetOptions ($resetKinds=[ 'registered', 'registered-multiselect', 'registered-checkmatrix', 'unused'], IContextSource $context=null)
 
 getDatePreference ()
 
 requiresHTTPS ()
 
 getStubThreshold ()
 
 getRights ()
 
 getGroups ()
 
 getGroupMemberships ()
 
 getEffectiveGroups ($recache=false)
 
 getAutomaticGroups ($recache=false)
 
 getFormerGroups ()
 
 getEditCount ()
 
 addGroup ($group, $expiry=null)
 
 removeGroup ($group)
 
 isLoggedIn ()
 
 isAnon ()
 
 isBot ()
 
 isAllowedAny ()
 
 isAllowedAll ()
 
 isAllowed ($action= '')
 
 useRCPatrol ()
 
 useNPPatrol ()
 
 useFilePatrol ()
 
 getRequest ()
 
 isWatched ($title, $checkRights=self::CHECK_USER_RIGHTS)
 
 addWatch ($title, $checkRights=self::CHECK_USER_RIGHTS)
 
 removeWatch ($title, $checkRights=self::CHECK_USER_RIGHTS)
 
 clearNotification (&$title, $oldid=0)
 
 clearAllNotifications ()
 
 getExperienceLevel ()
 
 setCookies ($request=null, $secure=null, $rememberMe=false)
 
 logout ()
 
 doLogout ()
 
 saveSettings ()
 
 idForName ($flags=0)
 
 addToDatabase ()
 
 spreadAnyEditBlock ()
 
 isBlockedFromCreateAccount ()
 
 isBlockedFromEmailuser ()
 
 isAllowedToCreateAccount ()
 
 getUserPage ()
 
 getTalkPage ()
 
 isNewbie ()
 
 checkPassword ($password)
 
 checkTemporaryPassword ($plaintext)
 
 getEditTokenObject ($salt= '', $request=null)
 
 getEditToken ($salt= '', $request=null)
 
 matchEditToken ($val, $salt= '', $request=null, $maxage=null)
 
 matchEditTokenNoSuffix ($val, $salt= '', $request=null, $maxage=null)
 
 sendConfirmationMail ($type= 'created')
 
 sendMail ($subject, $body, $from=null, $replyto=null)
 
 confirmEmail ()
 
 invalidateEmail ()
 
 setEmailAuthenticationTimestamp ($timestamp)
 
 canSendEmail ()
 
 canReceiveEmail ()
 
 isEmailConfirmed ()
 
 isEmailConfirmationPending ()
 
 getRegistration ()
 
 getFirstEditTimestamp ()
 
 changeableGroups ()
 
 incEditCount ()
 
 incEditCountImmediate ()
 
 addNewUserLogEntry ($action=false, $reason= '')
 
 addNewUserLogEntryAutoCreate ()
 
 getInstanceForUpdate ()
 
 equals (User $user)
 
- Public Member Functions inherited from MediaWiki\User\UserIdentity
 getActorId ()
 

Additional Inherited Members

- Static Public Member Functions inherited from User
static purge ($wikiId, $userId)
 
static whoIs ($id)
 
static whoIsReal ($id)
 
static idFromName ($name, $flags=self::READ_NORMAL)
 
static resetIdByNameCache ()
 
static isIP ($name)
 
static isValidUserName ($name)
 
static isUsableName ($name)
 
static findUsersByGroup ($groups, $limit=5000, $after=null)
 
static isCreatableName ($name)
 
static getCanonicalName ($name, $validate= 'valid')
 
static randomPassword ()
 
static getDefaultOptions ()
 
static getDefaultOption ($opt)
 
static isLocallyBlockedProxy ($ip)
 
static listOptionKinds ()
 
static createNew ($name, $params=[])
 
static getGroupPermissions ($groups)
 
static getGroupsWithPermission ($role)
 
static groupHasPermission ($group, $role)
 
static isEveryoneAllowed ($right)
 
static getGroupName ($group)
 
static getGroupMember ($group, $username= '#')
 
static getAllGroups ()
 
static getAllRights ()
 
static getImplicitGroups ()
 
static getGroupPage ($group)
 
static makeGroupLinkHTML ($group, $text= '')
 
static makeGroupLinkWiki ($group, $text= '')
 
static changeableByGroup ($group)
 
static getRightDescription ($right)
 
static getGrantName ($grant)
 
static selectFields ()
 
static getQueryInfo ()
 
static newFatalPermissionDeniedStatus ($permission)
 
static newFromName ($name, $validate= 'valid')
 
static newFromId ($id)
 
static newFromActorId ($id)
 
static newFromAnyId ($userId, $userName, $actorId)
 
static newFromConfirmationCode ($code, $flags=0)
 
static newFromSession (WebRequest $request=null)
 
static newFromRow ($row, $data=null)
 
static newSystemUser ($name, $options=[])
 
- Public Attributes inherited from User
const TOKEN_LENGTH = 32
 
const INVALID_TOKEN = '*** INVALID ***'
 
const EDIT_TOKEN_SUFFIX = Token::SUFFIX
 
const VERSION = 12
 
const GETOPTIONS_EXCLUDE_DEFAULTS = 1
 
const CHECK_USER_RIGHTS = true
 
const IGNORE_USER_RIGHTS = false
 
 $mFrom
 
 $mBlockedby
 
 $mRights
 
 $mHideName
 
 $mOptions
 
 $mBlock
 
 $mId
 
 $mName
 
 $mRealName
 
 $mEmail
 
 $mTouched
 
 $mEmailAuthenticated
 
 $mOptionsLoaded
 
- Public Attributes inherited from IDBAccessObject
const READ_NORMAL = 0
 
const READ_LATEST = 1
 
const READ_LOCKING = 3
 
const READ_EXCLUSIVE = 7
 
const READ_LATEST_IMMUTABLE = 8
 
const READ_NONE = -1
 
- Static Public Attributes inherited from User
static $idCacheByName = []
 
- Protected Member Functions inherited from User
 getCacheKey (WANObjectCache $cache)
 
 loadFromCache ()
 
 setItemLoaded ($item)
 
 loadFromRow ($row, $data=null)
 
 loadFromUserObject ($user)
 
 makeUpdateConditions (Database $db, array $conditions)
 
 checkAndSetTouched ()
 
 getBlockFromCookieValue ($blockCookieVal)
 
 checkNewtalk ($field, $id)
 
 updateNewtalk ($field, $id, $curRev=null)
 
 deleteNewtalk ($field, $id)
 
 spreadBlock ()
 
 confirmationToken (&$expiration)
 
 confirmationTokenUrl ($token)
 
 invalidationTokenUrl ($token)
 
 getTokenUrl ($page, $token)
 
 initEditCount ($add=0)
 
 loadOptions ($data=null)
 
 saveOptions ()
 
- Protected Attributes inherited from User
 $mNewtalk
 
 $mDatePreference
 
 $mHash
 
 $mBlockreason
 
 $mEffectiveGroups
 
 $mImplicitGroups
 
 $mFormerGroups
 
 $mGlobalBlock
 
 $mLocked
 
 $mAllowUsertalk
 
 $queryFlagsUsed = self::READ_NORMAL
 
 $mActorId
 
 $mQuickTouched
 
 $mToken
 
 $mEmailToken
 
 $mEmailTokenExpires
 
 $mRegistration
 
 $mEditCount
 
 $mGroupMemberships
 
 $mOptionOverrides
 
 $mLoadedItems = []
 
- Static Protected Attributes inherited from User
static $mCacheVars
 
static $mCoreRights
 
static $mAllRights = false
 

Detailed Description

Instantiate a SuperUser in order to be able to do everything. Borrowed from Translate/EducationProgram extension :-)

SMW SMWExtension

Member Function Documentation

SMW\Tests\Utils\Mock\MockSuperUser::getId ( )
Since
1.31
Returns
int The user ID. May be 0 for anonymous users or for users with no local account.

Implements MediaWiki\User\UserIdentity.

SMW\Tests\Utils\Mock\MockSuperUser::getName ( )
Since
1.31
Returns
string The user's logical name. May be an IPv4 or IPv6 address for anonymous users.

Implements MediaWiki\User\UserIdentity.


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