Translate.php
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 [email protected] 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
Properties
Methods
__call( $method, $options) : void
Calls all methods from the adapter
Parameters
Name | Type | Description |
---|---|---|
$method | ||
$options |
__construct(array | \Zend_Config $options = array()) : void
Generates the standard translation object
Parameters
Throws
Name | Type | Description |
---|---|---|
$options | array | \Zend_Config | Options to use |
Exception | Description |
---|---|
\Zend_Translate_Exception |
clearCache(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 |
getAdapter() : \Zend_Translate_Adapter
Returns the adapters name and it's options
Returns
Type | Description |
---|---|
\Zend_Translate_Adapter |
getCache() : \Zend_Cache_Core
static
Returns the set cache
Returns
Type | Description |
---|---|
\Zend_Cache_Core | The set cache |
setAdapter(array | \Zend_Config $options = array()) : void
Sets a new adapter
Parameters
Throws
Name | Type | Description |
---|---|---|
$options | array | \Zend_Config | Options to use |
Exception | Description |
---|---|
\Zend_Translate_Exception |
setCache(\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 |