Public Member Functions | Protected Member Functions

Zend_Translate_Adapter_Tbx Class Reference

Inheritance diagram for Zend_Translate_Adapter_Tbx:
Zend_Translate_Adapter

Public Member Functions

 __construct ($data, $locale=null, array $options=array())
 toString ()

Protected Member Functions

 _loadTranslationData ($filename, $locale, array $options=array())

Detailed Description

Definition at line 36 of file Tbx.php.


Constructor & Destructor Documentation

__construct ( data,
locale = null,
array $  options = array() 
)

Generates the tbx adapter This adapter reads with php's xml_parser

Parameters:
string$dataTranslation data
string | Zend_Locale$localeOPTIONAL Locale/Language to set, identical with locale identifier, see Zend_Locale for more information
array$optionsOPTIONAL Options to set

Reimplemented from Zend_Translate_Adapter.

Definition at line 55 of file Tbx.php.


Member Function Documentation

_loadTranslationData ( filename,
locale,
array $  options = array() 
) [protected]

Load translation data (TBX file reader)

Parameters:
string$filenameTBX file to add, full path must be given for access
string$localeLocale has no effect for TBX because TBX defines all languages within the source file
array$optionOPTIONAL Options to use
Exceptions:
Zend_Translation_Exception
Returns:
array

Reimplemented from Zend_Translate_Adapter.

Definition at line 70 of file Tbx.php.

toString (  )

Returns the adapter name

Returns:
string

Reimplemented from Zend_Translate_Adapter.

Definition at line 175 of file Tbx.php.


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