web/lib/Zend/Translate.php
changeset 1230 68c69c656a2c
parent 807 877f952ae2bd
equal deleted inserted replaced
1229:5a6b6e770365 1230:68c69c656a2c
    12  * obtain it through the world-wide-web, please send an email
    12  * obtain it through the world-wide-web, please send an email
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Translate
    16  * @package    Zend_Translate
    17  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    17  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @version    $Id: Translate.php 24593 2012-01-05 20:35:02Z matthew $
    19  * @version    $Id$
    20  */
    20  */
    21 
    21 
    22 /**
    22 /**
    23  * @see Zend_Loader
    23  * @see Zend_Loader
    24  */
    24  */
    31 
    31 
    32 
    32 
    33 /**
    33 /**
    34  * @category   Zend
    34  * @category   Zend
    35  * @package    Zend_Translate
    35  * @package    Zend_Translate
    36  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    36  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
    37  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    37  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    38  */
    38  */
    39 class Zend_Translate {
    39 class Zend_Translate {
    40     /**
    40     /**
    41      * Adapter names constants
    41      * Adapter names constants
    61     private $_adapter;
    61     private $_adapter;
    62 
    62 
    63     /**
    63     /**
    64      * Generates the standard translation object
    64      * Generates the standard translation object
    65      *
    65      *
    66      * @param  array|Zend_Config $options Options to use
    66      * @param  array|Zend_Config|Zend_Translate_Adapter $options Options to use
       
    67      * @param  string|array [$content] Path to content, or content itself
       
    68      * @param  string|Zend_Locale [$locale]
    67      * @throws Zend_Translate_Exception
    69      * @throws Zend_Translate_Exception
    68      */
    70      */
    69     public function __construct($options = array())
    71     public function __construct($options = array())
    70     {
    72     {
    71         if ($options instanceof Zend_Config) {
    73         if ($options instanceof Zend_Config) {
    94     }
    96     }
    95 
    97 
    96     /**
    98     /**
    97      * Sets a new adapter
    99      * Sets a new adapter
    98      *
   100      *
    99      * @param  array|Zend_Config $options Options to use
   101      * @param  array|Zend_Config|Zend_Translate_Adapter $options Options to use
       
   102      * @param  string|array [$content] Path to content, or content itself
       
   103      * @param  string|Zend_Locale [$locale]
   100      * @throws Zend_Translate_Exception
   104      * @throws Zend_Translate_Exception
   101      */
   105      */
   102     public function setAdapter($options = array())
   106     public function setAdapter($options = array())
   103     {
   107     {
   104         if ($options instanceof Zend_Config) {
   108         if ($options instanceof Zend_Config) {