Zend Framework  1.12
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Zend_Translate Class Reference

Public Member Functions

 __construct ($options=array())
 Generates the standard translation object.
 
 setAdapter ($options=array())
 Sets a new adapter.
 
 getAdapter ()
 Returns the adapters name and it's options.
 
 __call ($method, array $options)
 Calls all methods from the adapter.
 

Static Public Member Functions

static getCache ()
 Returns the set cache.
 
static setCache (Zend_Cache_Core $cache)
 Sets a cache for all instances of Zend_Translate.
 
static hasCache ()
 Returns true when a cache is set.
 
static removeCache ()
 Removes any set cache.
 
static clearCache ($tag=null)
 Clears all set cache data.
 

Public Attributes

const AN_ARRAY = 'Array'
 Adapter names constants.
 
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'
 

Constructor & Destructor Documentation

__construct (   $options = array())

Generates the standard translation object.

Parameters
array | Zend_Config$optionsOptions to use
Exceptions
Zend_Translate_Exception

Member Function Documentation

__call (   $method,
array  $options 
)

Calls all methods from the adapter.

static clearCache (   $tag = null)
static

Clears all set cache data.

Parameters
string$tagTag to clear when the default tag name is not used
Returns
void
getAdapter ( )

Returns the adapters name and it's options.

Returns
Zend_Translate_Adapter
static getCache ( )
static

Returns the set cache.

Returns
Zend_Cache_Core The set cache
static hasCache ( )
static

Returns true when a cache is set.

Returns
boolean
static removeCache ( )
static

Removes any set cache.

Returns
void
setAdapter (   $options = array())

Sets a new adapter.

Parameters
array | Zend_Config$optionsOptions to use
Exceptions
Zend_Translate_Exception
static setCache ( Zend_Cache_Core  $cache)
static

Sets a cache for all instances of Zend_Translate.

Parameters
Zend_Cache_Core$cacheCache to store to
Returns
void

Member Data Documentation

const AN_ARRAY = 'Array'

Adapter names constants.

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'