TranslationEditPage Class Reference

This class together with some JavaScript implements the AJAX translation page. More...

List of all members.

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'

Detailed Description

This class together with some JavaScript implements the AJAX translation page.

Definition at line 16 of file TranslationEditPage.php.


Constructor & Destructor Documentation

TranslationEditPage::__construct ( Title $  title  ) 

Constructor.

Parameters:
$title Title A title object

Definition at line 25 of file TranslationEditPage.php.

Here is the call graph for this function:


Member Function Documentation

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.

Here is the call graph for this function:

TranslationEditPage::getEditInfo (  )  [protected]

Gets the edit token and timestamps in some ugly array structure.

Needs to be cleaned up.

Exceptions:
MWException 
Returns:
  Array  

Definition at line 205 of file TranslationEditPage.php.

Referenced by execute().

Here is the call graph for this function:

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.

Returns:
Title

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.

Parameters:
$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.
Returns:
  Array  

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.

Parameters:
$request WebRequest
Returns:
TranslationEditPage

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.

Parameters:
$title Title

Definition at line 52 of file TranslationEditPage.php.

Referenced by __construct().


Member Data Documentation

TranslationEditPage::$suggestions = 'sync' [protected]

Definition at line 19 of file TranslationEditPage.php.

TranslationEditPage::$title [protected]

The documentation for this class was generated from the following file:
Generated on Tue Oct 29 00:00:56 2013 for MediaWiki Translate Extension by  doxygen 1.6.3