eZTranslatorHandler Class Reference
[Translation]

Base class for translation handling. More...

Inheritance diagram for eZTranslatorHandler:

eZ1337Translator eZBorkTranslator eZShuffleTranslator eZTranslatorGroup eZTSTranslator eZRandomTranslator List of all members.

Public Methods

 eZTranslatorHandler ($is_key_based)
 isKeyBased ()
findKey ($key)
findMessage ($context,$source,$comment=null)
translate ($context,$source,$comment=null)
keyTranslate ($key)

Private Attributes

 IsKeyBased

Detailed Description

Base class for translation handling.

Definition at line eztranslatorhandler.php.


Constructor & Destructor Documentation

eZTranslatorHandler::eZTranslatorHandler   is_key_based
 

Constructor

Definition at line eztranslatorhandler.php.

References IsKeyBased.

Referenced by eZTSTranslator::eZTSTranslator().


Member Function Documentation

& eZTranslatorHandler::findKey   key [pure virtual]
 

Returns:
the translation message for the key $key or null if the key does not exist.
This function must overridden if isKeyBased() is true.

Implemented in eZTSTranslator.

Definition at line eztranslatorhandler.php.

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

Returns:
the translation message for $source and $context or null if the key does not exist.
If you know the translation key use findKey() instead.

This function must overridden if isKeyBased() is true.

Implemented in eZTSTranslator.

Definition at line eztranslatorhandler.php.

eZTranslatorHandler::isKeyBased  
 

Returns:
true if the handler can lookup translations with translation keys.

Definition at line eztranslatorhandler.php.

References IsKeyBased.

Referenced by eZTranslatorGroup::registerHandler().

& eZTranslatorHandler::keyTranslate   key [pure virtual]
 

Returns:
the translation string for $key or null if the translation does not exist.
See also:
findMessage, findKey

Implemented in eZTSTranslator.

Definition at line eztranslatorhandler.php.

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

Returns:
the translation string for $source and $context or null if the translation does not exist.
See also:
findMessage, findKey

Implemented in eZTSTranslator.

Definition at line eztranslatorhandler.php.


Member Data Documentation

eZTranslatorHandler::IsKeyBased [private]
 

Tells whether the handler is key based or not

Definition at line eztranslatorhandler.php.

Referenced by isKeyBased().


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

Exponential