API Documentation

Translate.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Translate
version
$Id: Translate.php 22592 2010-07-16 20:58:42Z thomas $
Classes
Zend_Translate

Description

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.

Zend_Translate

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Translate
Constants
AN_ARRAY
AN_CSV
AN_GETTEXT
AN_INI
AN_QT
AN_TBX
AN_TMX
AN_XLIFF
AN_XMLTM
LOCALE_DIRECTORY
LOCALE_FILENAME
Properties
$_adapter
Methods
__construct
setAdapter
getAdapter
getCache
setCache
hasCache
removeCache
clearCache
__call

Description

Constants

AN_ARRAY

 AN_ARRAY = 'Array'

Adapter names constants

Details

value
Array

AN_CSV

 AN_CSV = 'Csv'

Details

value
Csv

AN_GETTEXT

 AN_GETTEXT = 'Gettext'

Details

value
Gettext

AN_INI

 AN_INI = 'Ini'

Details

value
Ini

AN_QT

 AN_QT = 'Qt'

Details

value
Qt

AN_TBX

 AN_TBX = 'Tbx'

Details

value
Tbx

AN_TMX

 AN_TMX = 'Tmx'

Details

value
Tmx

AN_XLIFF

 AN_XLIFF = 'Xliff'

Details

value
Xliff

AN_XMLTM

 AN_XMLTM = 'XmlTm'

Details

value
XmlTm

LOCALE_DIRECTORY

 LOCALE_DIRECTORY = 'directory'

Details

value
directory

LOCALE_FILENAME

 LOCALE_FILENAME = 'filename'

Details

value
filename

Properties

$_adapter

Zend_Translate_Adapter $_adapter = ''

Adapter

Details

$_adapter
Zend_Translate_Adapter
visibility
private
default
final
false
static
false

Methods

__call

__call(  $method,  $options ) :

Calls all methods from the adapter

Arguments
$method
$options
Details
visibility
public
final
false
static
false

__construct

__construct( array|Zend_Config $options = array ) :

Generates the standard translation object

Arguments
$options
arrayZend_Config
Options to use
Details
visibility
public
final
false
static
false
throws

clearCache

clearCache( string $tag = null ) : void

Clears all set cache data

Arguments
$tag
string
Tag to clear when the default tag name is not used
Details
visibility
public
final
false
static
true

getAdapter

getAdapter( ) : Zend_Translate_Adapter

Returns the adapters name and it's options

Details
visibility
public
final
false
static
false

getCache

getCache( ) : Zend_Cache_Core

Returns the set cache

Output
Zend_Cache_Core
The set cache
Details
visibility
public
final
false
static
true

hasCache

hasCache( ) : boolean

Returns true when a cache is set

Output
boolean
Details
visibility
public
final
false
static
true

removeCache

removeCache( ) : void

Removes any set cache

Details
visibility
public
final
false
static
true

setAdapter

setAdapter( array|Zend_Config $options = array ) :

Sets a new adapter

Arguments
$options
arrayZend_Config
Options to use
Details
visibility
public
final
false
static
false
throws

setCache

setCache( Zend_Cache_Core $cache ) : void

Sets a cache for all instances of Zend_Translate

Arguments
$cache
Zend_Cache_Core
Cache to store to
Details
visibility
public
final
false
static
true
Documentation was generated by DocBlox.