MediaWiki  REL1_24
MovePage Class Reference

Handles the backend logic of moving a page from one title to another. More...

Collaboration diagram for MovePage:

List of all members.

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.

Detailed Description

Handles the backend logic of moving a page from one title to another.

Since:
1.24

Definition at line 28 of file MovePage.php.


Constructor & Destructor Documentation

MovePage::__construct ( Title oldTitle,
Title newTitle 
)

Definition at line 38 of file MovePage.php.

References $newTitle, and $oldTitle.


Member Function Documentation

MovePage::move ( User user,
reason,
createRedirect 
)
Parameters:
User$user
string$reason
bool$createRedirect
Returns:
Status

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

Parameters:
User$userthe User doing the move
Title$ntThe page to move to, which should be a redirect or nonexistent
string$reasonThe reason for the move
bool$createRedirectWhether to leave a redirect at the old title. Does not check if the user has the suppressredirect right
Exceptions:
MWException

Definition at line 206 of file MovePage.php.


Member Data Documentation

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().


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