Translate.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Translate  
Version
$Id$  

\Zend_Translate

Package: Zend_Translate
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

>VConstant  AN_ARRAY = 'Array'
Adapter names constants
>VConstant  AN_CSV = 'Csv'
>VConstant  AN_GETTEXT = 'Gettext'
>VConstant  AN_INI = 'Ini'
>VConstant  AN_QT = 'Qt'
>VConstant  AN_TBX = 'Tbx'
>VConstant  AN_TMX = 'Tmx'
>VConstant  AN_XLIFF = 'Xliff'
>VConstant  AN_XMLTM = 'XmlTm'
>VConstant  LOCALE_DIRECTORY = 'directory'
>VConstant  LOCALE_FILENAME = 'filename'

Properties

>VPropertyprivate\Zend_Translate_Adapter $_adapter
Adapter

Methods

methodpublic__call( $method,  $options) : void

Calls all methods from the adapter

Parameters
NameTypeDescription
$method
$options
methodpublic__construct(array | \Zend_Config $options = array()) : void

Generates the standard translation object

Parameters
NameTypeDescription
$optionsarray | \Zend_Config

Options to use

Throws
ExceptionDescription
\Zend_Translate_Exception
methodpublicclearCache(string $tag = null) : void
static

Clears all set cache data

Parameters
NameTypeDescription
$tagstring

Tag to clear when the default tag name is not used

methodpublicgetAdapter() : \Zend_Translate_Adapter

Returns the adapters name and it's options

Returns
TypeDescription
\Zend_Translate_Adapter
methodpublicgetCache() : \Zend_Cache_Core
static

Returns the set cache

Returns
TypeDescription
\Zend_Cache_CoreThe set cache
methodpublichasCache() : boolean
static

Returns true when a cache is set

Returns
TypeDescription
boolean
methodpublicremoveCache() : void
static

Removes any set cache

methodpublicsetAdapter(array | \Zend_Config $options = array()) : void

Sets a new adapter

Parameters
NameTypeDescription
$optionsarray | \Zend_Config

Options to use

Throws
ExceptionDescription
\Zend_Translate_Exception
methodpublicsetCache(\Zend_Cache_Core $cache) : void
static

Sets a cache for all instances of Zend_Translate

Parameters
NameTypeDescription
$cache\Zend_Cache_Core

Cache to store to

Documentation was generated by phpDocumentor 2.2.0 .