📚 Looking for current Exponential documentation? This site contains legacy SDK & API reference docs (eZ Publish era). For up-to-date 2026 product documentation, visit doc.exponential.earth.

  class / eZRandomTranslator  

eZRandomTranslator Class Reference
[Translation]

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

Inheritance diagram for eZRandomTranslator:

TODO — Image not available in archive

Title:   eZRandomTranslator Class Inheritance Diagram (Doxygen)
File:    /doc/generated/html/classeZRandomTranslator.png

What this image shows:
Doxygen-generated class inheritance diagram for the eZRandomTranslator PHP class. Shows the inheritance hierarchy: which classes eZRandomTranslator extends and which classes inherit from it, with links to parent and child class documentation. This diagram was auto-generated from the Exponential 3.1 PHP source code using Doxygen circa 2003.

Replacement instructions:
Run Doxygen on the Exponential 3.1 PHP source and locate the generated classeZRandomTranslator.png in the output. Or draw the inheritance tree manually from the API reference. Save as /doc/generated/html/classeZRandomTranslator.png

See /sdk/missing.html for the full list of missing images.
eZTranslatorGroup eZTranslatorHandler List of all members.

Public Methods

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

Private Methods

 makeSeed ()

Detailed Description

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

Definition at line ezrandomtranslator.php.


Constructor & Destructor Documentation

eZRandomTranslator::eZRandomTranslator   is_key_based
 

Constructor

Definition at line ezrandomtranslator.php.

References eZTranslatorGroup::eZTranslatorGroup().


Member Function Documentation

eZRandomTranslator::keyPick   key [virtual]
 

Reimplemented for internal reasons; the API is not affected. Returns a random pick from the registered handlers.

Implements eZTranslatorGroup.

Definition at line ezrandomtranslator.php.

References eZTranslatorGroup::handlerCount().

eZRandomTranslator::makeSeed   [private]
 

Generates a seed usable for srand() and returns it.

Definition at line ezrandomtranslator.php.

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

Reimplemented for internal reasons; the API is not affected. Returns a random pick from the registered handlers.

Implements eZTranslatorGroup.

Definition at line ezrandomtranslator.php.

References eZTranslatorGroup::handlerCount().


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

Exponential Copyright © 1998 - 2026 7x