eZTranslatorGroup Class Reference
[Translation]
Allows for picking translator handlers according to context.
More...
Inheritance diagram for eZTranslatorGroup:
List of all members.
Detailed Description
Allows for picking translator handlers according to context.
Definition at line eztranslatorgroup.php.
Constructor & Destructor Documentation
eZTranslatorGroup::eZTranslatorGroup |
( |
$ |
is_key_based |
) |
|
|
Member Function Documentation
& eZTranslatorGroup::findKey |
( |
$ |
key |
) |
[pure virtual] |
|
& eZTranslatorGroup::findMessage |
( |
$ |
context, |
|
|
$ |
source, |
|
|
$ |
comment = null |
|
) |
[pure virtual] |
|
eZTranslatorGroup::handlerCount |
( |
|
) |
|
|
eZTranslatorGroup::keyPick |
( |
$ |
key |
) |
[pure virtual] |
|
|
Reimplement this to pick one of the registered handlers based on $key. - Returns:
-
-1 for no handler or a number within the handler range (starting from 0).
- See also:
-
pick
Implemented in eZRandomTranslator.
Definition at line eztranslatorgroup.php.
Referenced by keyTranslate(). |
& eZTranslatorGroup::keyTranslate |
( |
$ |
key |
) |
[pure virtual] |
|
eZTranslatorGroup::pick |
( |
$ |
context, |
|
|
$ |
source, |
|
|
$ |
comment |
|
) |
[pure virtual] |
|
|
Reimplement this to pick one of the registered handlers based on $context, $source and $comment. - Returns:
-
-1 for no handler or a number within the handler range (starting from 0).
- See also:
-
keyPick
Implemented in eZRandomTranslator.
Definition at line eztranslatorgroup.php.
Referenced by translate(). |
eZTranslatorGroup::registerHandler |
( |
&$ |
handler |
) |
|
|
& eZTranslatorGroup::translate |
( |
$ |
context, |
|
|
$ |
source, |
|
|
$ |
comment = null |
|
) |
[pure virtual] |
|
Member Data Documentation
eZTranslatorGroup::Handlers [private]
|
|
The documentation for this class was generated from the following file:
|