MediaWiki  master
EnConverter Class Reference
Inheritance diagram for EnConverter:
Collaboration diagram for EnConverter:

Public Member Functions

 __construct ( $langobj)
 
 translate ( $text, $toVariant)
 Translates text into Pig Latin. More...
 

Protected Member Functions

 loadDefaultTables ()
 Dummy methods required by base class. More...
 

Detailed Description

Definition at line 26 of file EnConverter.php.

Constructor & Destructor Documentation

◆ __construct()

EnConverter::__construct (   $langobj)

Definition at line 28 of file EnConverter.php.

Member Function Documentation

◆ loadDefaultTables()

EnConverter::loadDefaultTables ( )
protected

Dummy methods required by base class.

Definition at line 35 of file EnConverter.php.

◆ translate()

EnConverter::translate (   $text,
  $toVariant 
)

Translates text into Pig Latin.

This allows developers to test the language variants functionality and user interface without having to switch wiki language away from default.

Parameters
string$text
string$toVariant
Returns
string

Definition at line 50 of file EnConverter.php.

References $matches.


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