eZ Publish  [trunk]
eZRandomTranslator Class Reference

Translates text by picking randomly among it's sub handlers. More...

+ Inheritance diagram for eZRandomTranslator:
+ Collaboration diagram for eZRandomTranslator:

List of all members.

Public Member Functions

 eZRandomTranslator ($is_key_based)
 keyPick ($key)
 pick ($context, $source, $comment)

Private Member Functions

 makeSeed ()

Detailed Description

Translates text by picking randomly among it's sub handlers.

Definition at line 18 of file ezrandomtranslator.php.


Member Function Documentation

Constructor

Definition at line 23 of file ezrandomtranslator.php.

eZRandomTranslator::keyPick ( key) [virtual]

Returns a random pick from the registered handlers.

Implements eZTranslatorGroup.

Definition at line 32 of file ezrandomtranslator.php.

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 54 of file ezrandomtranslator.php.

eZRandomTranslator::pick ( context,
source,
comment 
) [virtual]

Returns a random pick from the registered handlers.

Implements eZTranslatorGroup.

Definition at line 42 of file ezrandomtranslator.php.


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