eZ1337Translator Class Reference
[Translation]

Translates text into the leet (1337) language. More...

Inheritance diagram for eZ1337Translator:

eZTranslatorHandler List of all members.

Public Methods

 eZ1337Translator ()
findMessage ($context,$source,$comment=null)
leetify ($text)
translate ($context,$source,$comment=null)

Static Public Methods

initialize ()

Private Attributes

 Messages

Detailed Description

Translates text into the leet (1337) language.

It translates the following characters/strings

  • to - 2
  • for - 4
  • ate - 8
  • you - u
  • l - 1
  • e - 3
  • o - 0
  • a - 4
  • t - 7

Definition at line ez1337translator.php.


Constructor & Destructor Documentation

eZ1337Translator::eZ1337Translator  
 

Construct the translator and loads the translation file $file if is set and exists.

Definition at line ez1337translator.php.

References Messages.

Referenced by initialize().


Member Function Documentation

& eZ1337Translator::findMessage   context,
  source,
  comment = null
[virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZTranslatorHandler.

Definition at line ez1337translator.php.

References Messages.

Referenced by translate().

& eZ1337Translator::initialize   [static]
 

Initialize the bork translator if this is not allready done.

Definition at line ez1337translator.php.

References eZTranslatorManager::instance().

& eZ1337Translator::leetify   text
 

Translates the text into 1337 code.

Definition at line ez1337translator.php.

Referenced by findMessage().

& eZ1337Translator::translate   context,
  source,
  comment = null
[virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZTranslatorHandler.

Definition at line ez1337translator.php.

References findMessage().


Member Data Documentation

eZ1337Translator::Messages [private]
 

Contains the hash table with cached 1337 translations

Definition at line ez1337translator.php.

Referenced by findMessage().


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

Exponential