|
eZ Publish
[trunk]
|
Allows for picking translator handlers according to context. More...
Inheritance diagram for eZTranslatorGroup:
Collaboration diagram for eZTranslatorGroup:Public Member Functions | |
| eZTranslatorGroup ($is_key_based) | |
| findKey ($key) | |
| findMessage ($context, $source, $comment=null) | |
| handlerCount () | |
| keyPick ($key) | |
| keyTranslate ($key) | |
| pick ($context, $source, $comment) | |
| registerHandler ($handler) | |
| translate ($context, $source, $comment=null) | |
Public Attributes | |
| $Handlers | |
| The array of grouped handlers. | |
Allows for picking translator handlers according to context.
Definition at line 18 of file eztranslatorgroup.php.
| eZTranslatorGroup::eZTranslatorGroup | ( | $ | is_key_based | ) |
Constructor
Definition at line 23 of file eztranslatorgroup.php.
Referenced by eZRandomTranslator\eZRandomTranslator().
| eZTranslatorGroup::findKey | ( | $ | key | ) | [pure virtual] |
This function must overridden if isKeyBased() is true.
Implements eZTranslatorHandler.
Definition at line 35 of file eztranslatorgroup.php.
| eZTranslatorGroup::findMessage | ( | $ | context, |
| $ | source, | ||
| $ | comment = null |
||
| ) | [pure virtual] |
If you know the translation key use findKey() instead.
This function must overridden if isKeyBased() is true.
Implements eZTranslatorHandler.
Definition at line 55 of file eztranslatorgroup.php.
Definition at line 126 of file eztranslatorgroup.php.
Referenced by eZRandomTranslator\keyPick(), and eZRandomTranslator\pick().
| eZTranslatorGroup::keyPick | ( | $ | key | ) | [pure virtual] |
Reimplement this to pick one of the registered handlers based on $key.
Implemented in eZRandomTranslator.
Definition at line 109 of file eztranslatorgroup.php.
Referenced by findKey(), and keyTranslate().
| eZTranslatorGroup::keyTranslate | ( | $ | key | ) | [pure virtual] |
Implements eZTranslatorHandler.
Definition at line 91 of file eztranslatorgroup.php.
| eZTranslatorGroup::pick | ( | $ | context, |
| $ | source, | ||
| $ | comment | ||
| ) | [pure virtual] |
Reimplement this to pick one of the registered handlers based on $context, $source and $comment.
Implemented in eZRandomTranslator.
Definition at line 119 of file eztranslatorgroup.php.
Referenced by findMessage(), and translate().
| eZTranslatorGroup::registerHandler | ( | $ | handler | ) |
Registers the handler object $handler.
Definition at line 134 of file eztranslatorgroup.php.
| eZTranslatorGroup::translate | ( | $ | context, |
| $ | source, | ||
| $ | comment = null |
||
| ) | [pure virtual] |
Implements eZTranslatorHandler.
Definition at line 73 of file eztranslatorgroup.php.
| eZTranslatorGroup::$Handlers |
The array of grouped handlers.
Definition at line 147 of file eztranslatorgroup.php.