eZPublish  4.4
eZRandomTranslator Class Reference

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)
 
- Public Member Functions inherited from eZTranslatorGroup
 eZTranslatorGroup ($is_key_based)
 
 findKey ($key)
 
 findMessage ($context, $source, $comment=null)
 
 handlerCount ()
 
 keyTranslate ($key)
 
 registerHandler ($handler)
 
 translate ($context, $source, $comment=null)
 
- Public Member Functions inherited from eZTranslatorHandler
 eZTranslatorHandler ($is_key_based)
 
 isKeyBased ()
 

Private Member Functions

 makeSeed ()
 

Additional Inherited Members

- Public Attributes inherited from eZTranslatorGroup
 $Handlers
 The array of grouped handlers. More...
 
- Public Attributes inherited from eZTranslatorHandler
 $IsKeyBased
 Tells whether the handler is key based or not. More...
 

Detailed Description

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

Member Function Documentation

eZRandomTranslator::eZRandomTranslator (   $is_key_based)

Constructor

eZRandomTranslator::keyPick (   $key)
virtual

Returns a random pick from the registered handlers.

Implements eZTranslatorGroup.

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)

eZRandomTranslator::pick (   $context,
  $source,
  $comment 
)
virtual

Returns a random pick from the registered handlers.

Implements eZTranslatorGroup.


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