TPSection Class Reference
[Page Translation]

This class represents one individual section in translatable page. More...

List of all members.

Public Member Functions

 getText ()
 Returns section text unmodified.
 getTextForTrans ()
 Returns section text with variables replaced.
 getMarkedText ()
 Returns the section text with updated or added section marker.
 getOldText ()
 Returns oldtext, or current text if not available.
 getVariables ()
 Returns array of variables defined on this section.

Public Attributes

 $id
 $name
 $text
 $type
 $oldText

Detailed Description

This class represents one individual section in translatable page.

Definition at line 16 of file TPSection.php.


Member Function Documentation

TPSection::getMarkedText (  ) 

Returns the section text with updated or added section marker.

Returns:
string Wikitext.

Definition at line 50 of file TPSection.php.

TPSection::getOldText (  ) 

Returns oldtext, or current text if not available.

Returns:
string Wikitext.

Definition at line 70 of file TPSection.php.

TPSection::getText (  ) 

Returns section text unmodified.

Returns:
string Wikitext.

Definition at line 32 of file TPSection.php.

TPSection::getTextForTrans (  ) 

Returns section text with variables replaced.

Returns:
string Wikitext.

Definition at line 40 of file TPSection.php.

TPSection::getVariables (  ) 

Returns array of variables defined on this section.

Returns:
array ( string => string ) Values indexed with keys which are prefixed with a dollar sign.

Definition at line 79 of file TPSection.php.


Member Data Documentation

TPSection::$id

Definition at line 18 of file TPSection.php.

Referenced by getMarkedText().

TPSection::$name

Definition at line 20 of file TPSection.php.

TPSection::$oldText

Definition at line 26 of file TPSection.php.

TPSection::$text

Definition at line 22 of file TPSection.php.

Referenced by getMarkedText().

TPSection::$type

Definition at line 24 of file TPSection.php.


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