category Zend
package Zend_Translate
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Calls all methods from the adapter

__call($method, array $options) 

Parameters

$method

$options

Generates the standard translation object

__construct(array|\Zend_Config|\Zend_Translate_Adapter $options = array()

Parameters

$options

array\Zend_Config\Zend_Translate_Adapter

Options to use

Exceptions

\Zend_Translate_Exception

Clears all set cache data

clearCache(string $tag = null) : void
Static

Parameters

$tag

string

Tag to clear when the default tag name is not used

Returns the adapters name and it's options

getAdapter() : \Zend_Translate_Adapter

Returns

\Zend_Translate_Adapter

Returns the set cache

getCache() : \Zend_Cache_Core
Static

Returns

\Zend_Cache_CoreThe set cache

Returns true when a cache is set

hasCache() : boolean
Static

Returns

boolean

Removes any set cache

removeCache() : void
Static

Sets a new adapter

setAdapter(array|\Zend_Config|\Zend_Translate_Adapter $options = array()

Parameters

$options

array\Zend_Config\Zend_Translate_Adapter

Options to use

Exceptions

\Zend_Translate_Exception

Sets a cache for all instances of Zend_Translate

setCache(\Zend_Cache_Core $cache) : void
Static

Parameters

$cache

\Zend_Cache_Core

Cache to store to

 Properties

 

Adapter

$_adapter : \Zend_Translate_Adapter

Default

 Constants

 

Adapter names constants

AN_ARRAY = 'Array' 
 

AN_CSV

AN_CSV = 'Csv' 
 

AN_GETTEXT

AN_GETTEXT = 'Gettext' 
 

AN_INI

AN_INI = 'Ini' 
 

AN_QT

AN_QT = 'Qt' 
 

AN_TBX

AN_TBX = 'Tbx' 
 

AN_TMX

AN_TMX = 'Tmx' 
 

AN_XLIFF

AN_XLIFF = 'Xliff' 
 

AN_XMLTM

AN_XMLTM = 'XmlTm' 
 

LOCALE_DIRECTORY

LOCALE_DIRECTORY = 'directory' 
 

LOCALE_FILENAME

LOCALE_FILENAME = 'filename'