Class Zend_Translate

Description
  • copyright: Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Translate.php (line 34)


	
			
Class Constant Summary
 AN_ARRAY = 'Array'
 AN_CSV = 'Csv'
 AN_GETTEXT = 'Gettext'
 AN_INI = 'Ini'
 AN_QT = 'Qt'
 AN_TBX = 'Tbx'
 AN_TMX = 'Tmx'
 AN_XLIFF = 'Xliff'
 AN_XMLTM = 'XmlTm'
 LOCALE_DIRECTORY = 'directory'
 LOCALE_FILENAME = 'filename'
Method Summary
 static void clearCache ()
 static boolean hasCache ()
 static void removeCache ()
 static void setCache ( $cache)
 Zend_Translate __construct (string $adapter, array $data, [string|Zend_Locale $locale = null], [ $options = array()])
 void setAdapter (string $adapter, string|array $data, [string|Zend_Locale $locale = null], [ $options = array()])
 void __call ( $method,  $options)
Methods
static clearCache (line 163)

Clears all set cache data

  • access: public
static void clearCache ()
static getCache (line 118)

Returns the set cache

  • return: The set cache
  • access: public
static Zend_Cache_Core getCache ()
static hasCache (line 139)

Returns true when a cache is set

  • access: public
static boolean hasCache ()
static removeCache (line 153)

Removes any set cache

  • access: public
static void removeCache ()
static setCache (line 129)

Sets a cache for all instances of Zend_Translate

  • access: public
static void setCache ( $cache)
Constructor __construct (line 69)

Generates the standard translation object

  • throws: Zend_Translate_Exception
  • access: public
Zend_Translate __construct (string $adapter, array $data, [string|Zend_Locale $locale = null], [ $options = array()])
  • 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
getAdapter (line 108)

Returns the adapters name and it's options

  • access: public
Zend_Translate_Adapter getAdapter ()
setAdapter (line 83)

Sets a new adapter

  • throws: Zend_Translate_Exception
  • access: public
void setAdapter (string $adapter, string|array $data, [string|Zend_Locale $locale = null], [ $options = array()])
  • string $adapter: Adapter to use
  • string|array $data: Translation data
  • string|Zend_Locale $locale: OPTIONAL locale to use
  • array $options: OPTIONAL Options to use
__call (line 171)

Calls all methods from the adapter

  • access: public
void __call ( $method,  $options)
  • $method
  • array $options
Class Constants
AN_ARRAY = 'Array' (line 38)

Adapter names constants

AN_CSV = 'Csv' (line 39)
AN_GETTEXT = 'Gettext' (line 40)
AN_INI = 'Ini' (line 41)
AN_QT = 'Qt' (line 42)
AN_TBX = 'Tbx' (line 43)
AN_TMX = 'Tmx' (line 44)
AN_XLIFF = 'Xliff' (line 45)
AN_XMLTM = 'XmlTm' (line 46)
LOCALE_DIRECTORY = 'directory' (line 48)
LOCALE_FILENAME = 'filename' (line 49)

Documentation generated on Thu, 01 Apr 2010 13:26:35 -0400 by phpDocumentor 1.4.3