Translation: ezcTranslationBackend
[ ]
[ ]
[ ]
[ ]
[ ]
Interface: ezcTranslationBackend
|
Interface for Translation backends. [
source]
This interface describes the methods that a Translation backend should implement.
Example:
Method Summary
|
public array |
getContext(
$locale, $context )
Returns an array with translation data for the context $context and the locale $locale. |
|
public void |
setOptions(
$configurationData )
Sets the backend specific $configurationData. |
Methods
getContext
array getContext(
mixed
$locale, mixed
$context )
Returns an array with translation data for the context $context and the locale $locale.
This method returns an array describing the map used for translation of text.
Throws
| Class | Description |
TranslationException |
when a context is not available. |
See also:
ezcTranslation::$translationMap for the format..
setOptions
void setOptions(
$configurationData )
Sets the backend specific $configurationData.
$configurationData should be a simple associative array in the form: array('option_name'=>'option_value').
Each implementor must document the options that it accepts and throw an ezcBaseConfigException with the ezcBaseConfigException::UNKNOWN_CONFIG_SETTING type if an option is not supported.
Parameters
| Name |
Type |
Description |
$configurationData |
mixed |
|
Last updated: Thu, 31 Jan 2008