API Documentation

Zend/Translate.php

Show: inherited
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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Translate  
Version
$Id: Translate.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Translate

Package: Zend\Translate

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

Constants

Constant  AN_ARRAY = 'Array'

Adapter names constants

Constant  AN_CSV = 'Csv'
Constant  AN_GETTEXT = 'Gettext'
Constant  AN_INI = 'Ini'
Constant  AN_QT = 'Qt'
Constant  AN_TBX = 'Tbx'
Constant  AN_TMX = 'Tmx'
Constant  AN_XLIFF = 'Xliff'
Constant  AN_XMLTM = 'XmlTm'
Constant  LOCALE_DIRECTORY = 'directory'
Constant  LOCALE_FILENAME = 'filename'

Properties

Propertyprivate\Zend_Translate_Adapter  $_adapter= ''

Adapter

Methods

methodpublic__call(  $method,  $options ) : void

Calls all methods from the adapter

Parameters
Name Type Description
$method
$options
methodpublic__construct( array|\Zend_Config $options = array() ) : void

Generates the standard translation object

Parameters
Name Type Description
$options array|\Zend_Config

Options to use

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

Clears all set cache data

Parameters
Name Type Description
$tag string

Tag to clear when the default tag name is not used

methodpublicgetAdapter( ) : \Zend_Translate_Adapter

Returns the adapters name and it's options

Returns
Type Description
\Zend_Translate_Adapter
methodpublicgetCache( ) : \Zend_Cache_Core
static

Returns the set cache

Returns
Type Description
\Zend_Cache_Core The set cache
methodpublichasCache( ) : boolean
static

Returns true when a cache is set

Returns
Type Description
boolean
methodpublicremoveCache( ) : void
static

Removes any set cache

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

Sets a new adapter

Parameters
Name Type Description
$options array|\Zend_Config

Options to use

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

Sets a cache for all instances of Zend_Translate

Parameters
Name Type Description
$cache \Zend_Cache_Core

Cache to store to

Documentation was generated by DocBlox 0.15.1.