|
eZ Publish
[4.2]
|
Translates text by picking randomly among it's sub handlers. More...
Inheritance diagram for eZRandomTranslator:
Collaboration diagram for eZRandomTranslator:Public Member Functions | |
| eZRandomTranslator ($is_key_based) | |
| keyPick ($key) | |
| pick ($context, $source, $comment) | |
Private Member Functions | |
| makeSeed () | |
Translates text by picking randomly among it's sub handlers.
Definition at line 41 of file ezrandomtranslator.php.
| eZRandomTranslator::eZRandomTranslator | ( | $ | is_key_based | ) |
Constructor
Definition at line 46 of file ezrandomtranslator.php.
| eZRandomTranslator::keyPick | ( | $ | key | ) | [virtual] |
Returns a random pick from the registered handlers.
Implements eZTranslatorGroup.
Definition at line 55 of file ezrandomtranslator.php.
| eZRandomTranslator::makeSeed | ( | ) | [private] |
Generates a seed usable for srand() and returns it. DEPRECATED: as of eZ Publish 4.2 (seeding is not needed as of PHP 4.2.0)
Definition at line 77 of file ezrandomtranslator.php.
| eZRandomTranslator::pick | ( | $ | context, |
| $ | source, | ||
| $ | comment | ||
| ) | [virtual] |
Returns a random pick from the registered handlers.
Implements eZTranslatorGroup.
Definition at line 65 of file ezrandomtranslator.php.