This class together with some JavaScript implements the AJAX translation page. More...
Public Member Functions | |
__construct (Title $title) | |
Constructor. | |
setTitle (Title $title) | |
Change the title of the page we are working on. | |
getTitle () | |
Get the title of the page we are working on. | |
execute () | |
Generates the html snippet for ajax edit. | |
Static Public Member Functions | |
static | newFromRequest (WebRequest $request) |
Constructs a page from WebRequest. | |
static | jsEdit (Title $title, $group="", $type= 'default') |
Returns link attributes that enable javascript translation dialog. | |
Protected Member Functions | |
getEditInfo () | |
Gets the edit token and timestamps in some ugly array structure. | |
getSupportButton ($title) | |
getPermissionPageButton () | |
Protected Attributes | |
$title | |
$suggestions = 'sync' |
This class together with some JavaScript implements the AJAX translation page.
Definition at line 16 of file TranslationEditPage.php.
TranslationEditPage::__construct | ( | Title $ | title | ) |
Constructor.
$title | Title A title object |
Definition at line 25 of file TranslationEditPage.php.
TranslationEditPage::execute | ( | ) |
Generates the html snippet for ajax edit.
Echoes it to the output and disabled all other output.
Definition at line 68 of file TranslationEditPage.php.
TranslationEditPage::getEditInfo | ( | ) | [protected] |
Gets the edit token and timestamps in some ugly array structure.
Needs to be cleaned up.
MWException |
Definition at line 205 of file TranslationEditPage.php.
Referenced by execute().
TranslationEditPage::getPermissionPageButton | ( | ) | [protected] |
Definition at line 290 of file TranslationEditPage.php.
Referenced by execute().
TranslationEditPage::getSupportButton | ( | $ | title | ) | [protected] |
Definition at line 260 of file TranslationEditPage.php.
Referenced by execute().
TranslationEditPage::getTitle | ( | ) |
Get the title of the page we are working on.
Definition at line 60 of file TranslationEditPage.php.
Referenced by execute(), and getEditInfo().
static TranslationEditPage::jsEdit | ( | Title $ | title, | |
$ | group = "" , |
|||
$ | type = 'default' | |||
) | [static] |
Returns link attributes that enable javascript translation dialog.
Will degrade gracefully if user does not have permissions or JavaScript is not enabled.
$title | Title Title object for the translatable message. | |
$group | String The group in which this message belongs to. Optional, but avoids a lookup later if provided. | |
$type | String Force the type of editor to be used. Use dialog where embedded editor is no applicable. |
Definition at line 238 of file TranslationEditPage.php.
Referenced by TranslationHelpers::ajaxEditLink().
static TranslationEditPage::newFromRequest | ( | WebRequest $ | request | ) | [static] |
Constructs a page from WebRequest.
This interface is a big klunky.
$request | WebRequest |
Definition at line 35 of file TranslationEditPage.php.
Referenced by SpecialTranslate::execute().
TranslationEditPage::setTitle | ( | Title $ | title | ) |
Change the title of the page we are working on.
$title | Title |
Definition at line 52 of file TranslationEditPage.php.
Referenced by __construct().
TranslationEditPage::$suggestions = 'sync' [protected] |
Definition at line 19 of file TranslationEditPage.php.
TranslationEditPage::$title [protected] |
Definition at line 18 of file TranslationEditPage.php.
Referenced by getPermissionPageButton(), getSupportButton(), and newFromRequest().