Public Member Functions |
| __construct ($adapter, $data, $locale=null, array $options=array()) |
| setAdapter ($adapter, $data, $locale=null, array $options=array()) |
| getAdapter () |
| __call ($method, array $options) |
Static Public Member Functions |
static | getCache () |
static | setCache (Zend_Cache_Core $cache) |
static | hasCache () |
static | removeCache () |
static | clearCache () |
Data Fields |
const | AN_ARRAY = 'Array' |
const | AN_CSV = 'Csv' |
const | AN_GETTEXT = 'Gettext' |
const | AN_INI = 'Ini' |
const | AN_QT = 'Qt' |
const | AN_TBX = 'Tbx' |
const | AN_TMX = 'Tmx' |
const | AN_XLIFF = 'Xliff' |
const | AN_XMLTM = 'XmlTm' |
const | LOCALE_DIRECTORY = 'directory' |
const | LOCALE_FILENAME = 'filename' |
Detailed Description
Definition at line 34 of file Translate.php.
Constructor & Destructor Documentation
__construct |
( |
$ |
adapter, |
|
|
$ |
data, |
|
|
$ |
locale = null , |
|
|
array $ |
options = array() |
|
) |
| |
Generates the standard translation object
- Parameters:
-
string | $adapter | Adapter to use |
array | $data | Translation source data for the adapter Depends on the Adapter |
string | Zend_Locale | $locale | OPTIONAL locale to use |
array | $options | OPTIONAL options for the adapter |
- Exceptions:
-
Definition at line 69 of file Translate.php.
Member Function Documentation
__call |
( |
$ |
method, |
|
|
array $ |
options |
|
) |
| |
Calls all methods from the adapter
Definition at line 171 of file Translate.php.
static clearCache |
( |
) |
[static] |
Clears all set cache data
- Returns:
- void
Definition at line 163 of file Translate.php.
static getCache |
( |
) |
[static] |
static hasCache |
( |
) |
[static] |
Returns true when a cache is set
- Returns:
- boolean
Definition at line 139 of file Translate.php.
static removeCache |
( |
) |
[static] |
Removes any set cache
- Returns:
- void
Definition at line 153 of file Translate.php.
setAdapter |
( |
$ |
adapter, |
|
|
$ |
data, |
|
|
$ |
locale = null , |
|
|
array $ |
options = array() |
|
) |
| |
Sets a new adapter
- Parameters:
-
string | $adapter | Adapter to use |
string | array | $data | Translation data |
string | Zend_Locale | $locale | OPTIONAL locale to use |
array | $options | OPTIONAL Options to use |
- Exceptions:
-
Definition at line 83 of file Translate.php.
Field Documentation
The documentation for this class was generated from the following file: