ez components / documentation / api reference / latest / translation

eZ Components latest

Translation: ezcTranslationTsBackendOptions

[ Tutorial ] [ Linguist format ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcTranslationTsBackendOptions

Struct class to store the options of the ezcTranslationTsBackend class. [source]
This class stores the options for the ezcTranslationTsBackend class.




string read/write  $format
Format for the translation file's name. In this format string the special place holder [LOCALE] will be replaced with the requested locale's name. For example a format of "translations/[LOCALE].xml" will result in the filename for the translation file to be "translations/nl_NL.xml" if the nl_NL locale is requested.
bool read/write  $keepObsolete
When this option is set to "true" the reader will not drop translation messages with the "obsolete" type set.
string read/write  $location
Path to the directory that contains all TS .xml files.

Inherited Member Variables

From ezcBaseOptions:
protected  ezcBaseOptions::$properties

Method Summary

public ezcTranslationTsBackendOptions __construct( [$array = array()] )
Constructs a new options class.

Inherited Methods

From ezcBaseOptions :
public ezcBaseOptions ezcBaseOptions::__construct()
Construct a new options object.
public void ezcBaseOptions::merge()
Merge an array into the actual options object.
public bool ezcBaseOptions::offsetExists()
Returns if an option exists.
public mixed ezcBaseOptions::offsetGet()
Returns an option value.
public void ezcBaseOptions::offsetSet()
Set an option.
public void ezcBaseOptions::offsetUnset()
Unset an option.



ezcTranslationTsBackendOptions __construct( [array(string=>mixed) $array = array()] )
Constructs a new options class.
It also sets the default values of the format property


Name Type Description
$array array(string=>mixed) The initial options to set.


ezcBaseValueException If a the value for a property is out of range.
ezcBasePropertyNotFoundException If a the value for the property options is not an instance of

Redefinition of

Method Description
ezcBaseOptions::__construct() Construct a new options object.

Last updated: Mon, 21 Dec 2009