Definition at line 39 of file Translate.php.
◆ __construct()
__construct |
( |
|
$options = array() | ) |
|
Generates the standard translation object
- Parameters
-
- Exceptions
-
Definition at line 71 of file Translate.php.
75 }
else if (func_num_args() > 1) {
76 $args = func_get_args();
78 $options[
'adapter'] = array_shift($args);
80 $options[
'content'] = array_shift($args);
84 $options[
'locale'] = array_shift($args);
88 $opt = array_shift($args);
setAdapter($options=array())
◆ __call()
__call |
( |
|
$method, |
|
|
array |
$options |
|
) |
| |
Calls all methods from the adapter
Definition at line 216 of file Translate.php.
218 if (method_exists($this->_adapter,
$method)) {
219 return call_user_func_array(array($this->_adapter,
$method),
$options);
221 #require_once 'Zend/Translate/Exception.php';
◆ clearCache()
static clearCache |
( |
|
$tag = null | ) |
|
|
static |
Clears all set cache data
- Parameters
-
string | $tag | Tag to clear when the default tag name is not used |
- Returns
- void
Definition at line 208 of file Translate.php.
static clearCache($tag=null)
◆ getAdapter()
◆ getCache()
◆ hasCache()
Returns true when a cache is set
- Returns
- boolean
Definition at line 187 of file Translate.php.
◆ removeCache()
◆ setAdapter()
setAdapter |
( |
|
$options = array() | ) |
|
Sets a new adapter
- Parameters
-
- Exceptions
-
Definition at line 106 of file Translate.php.
110 }
else if (func_num_args() > 1) {
111 $args = func_get_args();
113 $options[
'adapter'] = array_shift($args);
115 $options[
'content'] = array_shift($args);
119 $options[
'locale'] = array_shift($args);
123 $opt = array_shift($args);
131 $options[
'adapter'] =
'Zend_Translate_Adapter_' . ucfirst(
$options[
'adapter']);
138 if (array_key_exists(
'cache',
$options)) {
146 #require_once 'Zend/Translate/Exception.php'; static loadClass($class, $dirs=null)
static isReadable($filename)
static setCache(Zend_Cache_Core $cache)
◆ setCache()
Sets a cache for all instances of Zend_Translate
- Parameters
-
- Returns
- void
Definition at line 177 of file Translate.php.
static setCache(Zend_Cache_Core $cache)
◆ AN_ARRAY
◆ AN_CSV
◆ AN_GETTEXT
const AN_GETTEXT = 'Gettext' |
◆ AN_INI
◆ AN_QT
◆ AN_TBX
◆ AN_TMX
◆ AN_XLIFF
◆ AN_XMLTM
◆ LOCALE_DIRECTORY
const LOCALE_DIRECTORY = 'directory' |
◆ LOCALE_FILENAME
const LOCALE_FILENAME = 'filename' |
The documentation for this class was generated from the following file: