eZShuffleTranslator Class Reference
[Translation]

Translates text by moving characters around. More...

Inheritance diagram for eZShuffleTranslator:

eZTranslatorHandler List of all members.

Public Methods

 eZShuffleTranslator ($max_chars=3)
findMessage ($context,$source,$comment=null)
shuffleText ($text)
translate ($context,$source,$comment=null)

Private Attributes

 Messages

Detailed Description

Translates text by moving characters around.

Definition at line ezshuffletranslator.php.


Constructor & Destructor Documentation

eZShuffleTranslator::eZShuffleTranslator   max_chars = 3
 

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

Definition at line ezshuffletranslator.php.

References Messages.


Member Function Documentation

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

Reimplemented for internal reasons; the API is not affected.

Implements eZTranslatorHandler.

Definition at line ezshuffletranslator.php.

References shuffleText().

Referenced by translate().

& eZShuffleTranslator::shuffleText   text
 

Reorders some of the characters in $text and returns the new text string. The maximum number of reorders is taken from MaxChars.

Definition at line ezshuffletranslator.php.

Referenced by findMessage().

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

Reimplemented for internal reasons; the API is not affected.

Implements eZTranslatorHandler.

Definition at line ezshuffletranslator.php.

References findMessage().


Member Data Documentation

eZShuffleTranslator::Messages [private]
 

Contains the hash table with cached 1337 translations

Definition at line ezshuffletranslator.php.

Referenced by eZShuffleTranslator().


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

Exponential