MediaWiki
REL1_24
|
Handles the backend logic of moving a page from one title to another. More...
Public Member Functions | |
__construct (Title $oldTitle, Title $newTitle) | |
move (User $user, $reason, $createRedirect) | |
Protected Attributes | |
Title | $newTitle |
Title | $oldTitle |
Private Member Functions | |
moveToInternal (User $user, &$nt, $reason= '', $createRedirect=true) | |
Move page to a title which is either a redirect to the source page or nonexistent. |
Handles the backend logic of moving a page from one title to another.
Definition at line 28 of file MovePage.php.
MovePage::__construct | ( | Title $ | oldTitle, |
Title $ | newTitle | ||
) |
Definition at line 38 of file MovePage.php.
MovePage::move | ( | User $ | user, |
$ | reason, | ||
$ | createRedirect | ||
) |
User | $user | |
string | $reason | |
bool | $createRedirect |
Definition at line 49 of file MovePage.php.
MovePage::moveToInternal | ( | User $ | user, |
&$ | nt, | ||
$ | reason = '' , |
||
$ | createRedirect = true |
||
) | [private] |
Move page to a title which is either a redirect to the source page or nonexistent.
This was basically directly moved from Title, it should be split into smaller functions
User | $user | the User doing the move |
Title | $nt | The page to move to, which should be a redirect or nonexistent |
string | $reason | The reason for the move |
bool | $createRedirect | Whether to leave a redirect at the old title. Does not check if the user has the suppressredirect right |
MWException |
Definition at line 206 of file MovePage.php.
Title MovePage::$newTitle [protected] |
Definition at line 36 of file MovePage.php.
Referenced by __construct().
Title MovePage::$oldTitle [protected] |
Definition at line 32 of file MovePage.php.
Referenced by __construct().