MediaWiki  REL1_24
SpecialPageLanguage Class Reference

Special page for changing the content language of a page. More...

Inheritance diagram for SpecialPageLanguage:
Collaboration diagram for SpecialPageLanguage:

List of all members.

Public Member Functions

 __construct ()
 alterForm (HTMLForm $form)
 Play with the HTMLForm if you need to more substantially.
 onSubmit (array $data)
 onSuccess ()
 Do something exciting on successful processing of the form, most likely to show a confirmation message.
 showLogFragment ($title)

Protected Member Functions

 getFormFields ()
 Get an HTMLForm descriptor array.
 postText ()
 Add post-text to the form.
 preText ()
 Add pre-text to the form.

Private Attributes

string $goToUrl
 URL to go to if language change successful.

Detailed Description

Special page for changing the content language of a page.

Definition at line 31 of file SpecialPageLanguage.php.


Constructor & Destructor Documentation


Member Function Documentation

Play with the HTMLForm if you need to more substantially.

Parameters:
HTMLForm$form

Reimplemented from FormSpecialPage.

Definition at line 92 of file SpecialPageLanguage.php.

References array(), SpecialPage\getOutput(), HTMLForm\setDisplayFormat(), HTMLForm\setWrapperLegend(), and wfRunHooks().

Get an HTMLForm descriptor array.

Returns:
array

Reimplemented from FormSpecialPage.

Definition at line 44 of file SpecialPageLanguage.php.

References $name, $options, array(), as, Language\fetchLanguageNames(), SpecialPage\getConfig(), SpecialPage\getLanguage(), and SpecialPage\msg().

Parameters:
array$data
Returns:
bool

Reimplemented from FormSpecialPage.

Definition at line 103 of file SpecialPageLanguage.php.

Do something exciting on successful processing of the form, most likely to show a confirmation message.

Since:
1.22 Default is to do nothing

Reimplemented from FormSpecialPage.

Definition at line 182 of file SpecialPageLanguage.php.

References SpecialPage\getOutput().

Add post-text to the form.

Returns:
string HTML which will be sent to $form->addPostText()

Reimplemented from FormSpecialPage.

Definition at line 88 of file SpecialPageLanguage.php.

References showLogFragment().

Add pre-text to the form.

Returns:
string HTML which will be sent to $form->addPreText()

Reimplemented from FormSpecialPage.

Definition at line 40 of file SpecialPageLanguage.php.

References SpecialPage\getOutput().

Definition at line 187 of file SpecialPageLanguage.php.

References $title, Xml\element(), and LogEventsList\showLogExtract().

Referenced by postText().


Member Data Documentation

string SpecialPageLanguage::$goToUrl [private]

URL to go to if language change successful.

Definition at line 34 of file SpecialPageLanguage.php.


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