MediaWiki REL1_40
|
Inherits IDBAccessObject.
Public Member Functions | |
__construct (ServiceOptions $options, CentralIdLookup $centralIdLookup, LBFactory $lbFactory) | |
deleteBotPassword (BotPassword $botPassword) | |
Delete an existing BotPassword in the database. | |
getByCentralId (int $centralId, string $appId, int $flags=self::READ_NORMAL) | |
Load a BotPassword from the database. | |
getByUser (UserIdentity $userIdentity, string $appId, int $flags=self::READ_NORMAL) | |
Load a BotPassword from the database based on a UserIdentity object. | |
getDatabase (int $db) | |
Get a database connection for the bot passwords database. | |
insertBotPassword (BotPassword $botPassword, Password $password=null) | |
Save the new BotPassword to the database. | |
invalidateUserPasswords (string $username) | |
Invalidate all passwords for a user, by name. | |
newUnsavedBotPassword (array $data, int $flags=self::READ_NORMAL) | |
Create an unsaved BotPassword. | |
removeUserPasswords (string $username) | |
Remove all passwords for a user, by name. | |
updateBotPassword (BotPassword $botPassword, Password $password=null) | |
Update an existing BotPassword in the database. | |
Public Attributes | |
const | CONSTRUCTOR_OPTIONS |
Public Attributes inherited from IDBAccessObject | |
const | READ_NONE = -1 |
Constants for object loading bitfield flags (higher => higher QoS) | |
Definition at line 45 of file BotPasswordStore.php.
MediaWiki\User\BotPasswordStore::__construct | ( | ServiceOptions | $options, |
CentralIdLookup | $centralIdLookup, | ||
LBFactory | $lbFactory ) |
ServiceOptions | $options | |
CentralIdLookup | $centralIdLookup | |
LBFactory | $lbFactory |
Definition at line 70 of file BotPasswordStore.php.
References MediaWiki\Config\ServiceOptions\assertRequiredOptions().
MediaWiki\User\BotPasswordStore::deleteBotPassword | ( | BotPassword | $botPassword | ) |
Delete an existing BotPassword in the database.
BotPassword | $botPassword |
Definition at line 354 of file BotPasswordStore.php.
MediaWiki\User\BotPasswordStore::getByCentralId | ( | int | $centralId, |
string | $appId, | ||
int | $flags = self::READ_NORMAL ) |
Load a BotPassword from the database.
int | $centralId | from CentralIdLookup |
string | $appId | |
int | $flags | IDBAccessObject read flags |
Definition at line 135 of file BotPasswordStore.php.
MediaWiki\User\BotPasswordStore::getByUser | ( | UserIdentity | $userIdentity, |
string | $appId, | ||
int | $flags = self::READ_NORMAL ) |
Load a BotPassword from the database based on a UserIdentity object.
UserIdentity | $userIdentity | |
string | $appId | |
int | $flags | IDBAccessObject read flags |
Definition at line 111 of file BotPasswordStore.php.
MediaWiki\User\BotPasswordStore::getDatabase | ( | int | $db | ) |
Get a database connection for the bot passwords database.
int | $db | Index of the connection to get, e.g. DB_PRIMARY or DB_REPLICA. |
Definition at line 87 of file BotPasswordStore.php.
References MediaWiki\MainConfigNames\BotPasswordsCluster.
MediaWiki\User\BotPasswordStore::insertBotPassword | ( | BotPassword | $botPassword, |
Password | $password = null ) |
Save the new BotPassword to the database.
BotPassword | $botPassword | |
Password | null | $password | Use null for an invalid password |
Definition at line 228 of file BotPasswordStore.php.
References $res.
MediaWiki\User\BotPasswordStore::invalidateUserPasswords | ( | string | $username | ) |
Invalidate all passwords for a user, by name.
string | $username |
Definition at line 373 of file BotPasswordStore.php.
MediaWiki\User\BotPasswordStore::newUnsavedBotPassword | ( | array | $data, |
int | $flags = self::READ_NORMAL ) |
Create an unsaved BotPassword.
array | $data | Data to use to create the bot password. Keys are:
|
int | $flags | IDBAccessObject read flags |
Definition at line 168 of file BotPasswordStore.php.
MediaWiki\User\BotPasswordStore::removeUserPasswords | ( | string | $username | ) |
Remove all passwords for a user, by name.
string | $username |
Definition at line 402 of file BotPasswordStore.php.
MediaWiki\User\BotPasswordStore::updateBotPassword | ( | BotPassword | $botPassword, |
Password | $password = null ) |
Update an existing BotPassword in the database.
BotPassword | $botPassword | |
Password | null | $password | Use null for an invalid password |
Definition at line 282 of file BotPasswordStore.php.
References $res.
const MediaWiki\User\BotPasswordStore::CONSTRUCTOR_OPTIONS |
Definition at line 50 of file BotPasswordStore.php.