MediaWiki master
|
Handles the backend logic of renaming users. More...
Public Member Functions | |
__construct (ServiceOptions $options, CentralIdLookupFactory $centralIdLookupFactory, JobQueueGroupFactory $jobQueueGroupFactory, MovePageFactory $movePageFactory, UserFactory $userFactory, UserNameUtils $userNameUtils, PermissionManager $permissionManager, TitleFactory $titleFactory, User $performer, User $target, string $oldName, string $newName, string $reason, array $renameOptions) | |
moveUserPages () | |
Attempts to move local user pages. | |
rename () | |
Attempts to perform the rename smartly after checking the performer's rights. | |
renameGlobal () | |
Attempts to perform the rename globally. | |
renameLocal () | |
Performs the rename in local domain. | |
renameUnsafe () | |
Attempts to perform the rename smartly. | |
Public Attributes | |
const | CONSTRUCTOR_OPTIONS |
Handles the backend logic of renaming users.
Definition at line 29 of file RenameUser.php.
MediaWiki\RenameUser\RenameUser::__construct | ( | ServiceOptions | $options, |
CentralIdLookupFactory | $centralIdLookupFactory, | ||
JobQueueGroupFactory | $jobQueueGroupFactory, | ||
MovePageFactory | $movePageFactory, | ||
UserFactory | $userFactory, | ||
UserNameUtils | $userNameUtils, | ||
PermissionManager | $permissionManager, | ||
TitleFactory | $titleFactory, | ||
User | $performer, | ||
User | $target, | ||
string | $oldName, | ||
string | $newName, | ||
string | $reason, | ||
array | $renameOptions ) |
ServiceOptions | $options | |
CentralIdLookupFactory | $centralIdLookupFactory | |
JobQueueGroupFactory | $jobQueueGroupFactory | |
MovePageFactory | $movePageFactory | |
UserFactory | $userFactory | |
UserNameUtils | $userNameUtils | |
PermissionManager | $permissionManager | |
TitleFactory | $titleFactory | |
User | $performer | |
User | $target | |
string | $oldName | |
string | $newName | |
string | $reason | |
array | $renameOptions | Valid options:
|
Definition at line 91 of file RenameUser.php.
References MediaWiki\Config\ServiceOptions\assertRequiredOptions(), MediaWiki\Config\ServiceOptions\get(), and MediaWiki\MainConfigNames\LocalDatabases.
MediaWiki\RenameUser\RenameUser::moveUserPages | ( | ) |
Attempts to move local user pages.
Definition at line 244 of file RenameUser.php.
References NS_USER.
MediaWiki\RenameUser\RenameUser::rename | ( | ) |
Attempts to perform the rename smartly after checking the performer's rights.
This decides whether renameGlobal or renameLocal should be used and call the proper function.
Definition at line 385 of file RenameUser.php.
MediaWiki\RenameUser\RenameUser::renameGlobal | ( | ) |
Attempts to perform the rename globally.
This will first call renameLocal to complete local renaming, then enqueue RenameUserDerivedJob for all other wikis in the same wiki family.
Definition at line 313 of file RenameUser.php.
MediaWiki\RenameUser\RenameUser::renameLocal | ( | ) |
MediaWiki\RenameUser\RenameUser::renameUnsafe | ( | ) |
Attempts to perform the rename smartly.
This decides whether renameGlobal or renameLocal should be used and call the proper function.
Definition at line 369 of file RenameUser.php.
const MediaWiki\RenameUser\RenameUser::CONSTRUCTOR_OPTIONS |
Definition at line 63 of file RenameUser.php.