Path

ez components / documentation / api reference / 1.1.1 / consoletools


eZ Components 1.1.1

ConsoleTools: ezcTranslationTsBackendOptions

[ Tutorial ] [ 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.

Parents

ezcBaseOptions
   |
   --ezcTranslationTsBackendOptions

Properties

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.
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()], $options )
Constructs a new options class.

Inherited Methods

From ezcBaseOptions :
public void 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.
public mixed ezcBaseOptions::__get()
Property get access.

Methods

__construct

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

Parameters

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

Throws

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

Redefinition of

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

Last updated: Thu, 01 Nov 2007