web/lib/Zend/Cloud/AbstractFactory.php
changeset 886 1e110b03ae96
parent 807 877f952ae2bd
child 1230 68c69c656a2c
equal deleted inserted replaced
885:2251fb41dbc7 886:1e110b03ae96
    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_Cloud
    16  * @package    Zend_Cloud
    17  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    17  * @copyright  Copyright (c) 2005-2012 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  */
    19  */
    20 
    20 
    21 /**
    21 /**
    22  * Abstract factory for Zend_Cloud resources
    22  * Abstract factory for Zend_Cloud resources
    23  *
    23  *
    24  * @category   Zend
    24  * @category   Zend
    25  * @package    Zend_Cloud
    25  * @package    Zend_Cloud
    26  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    26  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    27  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    27  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    28  */
    28  */
    29 class Zend_Cloud_AbstractFactory
    29 class Zend_Cloud_AbstractFactory
    30 {
    30 {
    31     /**
    31     /**
    32      * Constructor
    32      * Constructor
    33      * 
    33      *
    34      * @return void
    34      * @return void
    35      */
    35      */
    36     private function __construct()
    36     private function __construct()
    37     {
    37     {
    38         // private ctor - should not be used
    38         // private ctor - should not be used
    39     }
    39     }
    40     
    40 
    41     /**
    41     /**
    42      * Get an individual adapter instance
    42      * Get an individual adapter instance
    43      * 
    43      *
    44      * @param  string $adapterOption 
    44      * @param  string $adapterOption
    45      * @param  array|Zend_Config $options 
    45      * @param  array|Zend_Config $options
    46      * @return null|Zend_Cloud_DocumentService_Adapter|Zend_Cloud_QueueService_Adapter|Zend_Cloud_StorageService_Adapter
    46      * @return null|Zend_Cloud_DocumentService_Adapter|Zend_Cloud_QueueService_Adapter|Zend_Cloud_StorageService_Adapter
    47      */
    47      */
    48     protected static function _getAdapter($adapterOption, $options) 
    48     protected static function _getAdapter($adapterOption, $options)
    49     {
    49     {
    50         if ($options instanceof Zend_Config) {
    50         if ($options instanceof Zend_Config) {
    51             $options = $options->toArray();
    51             $options = $options->toArray();
    52         }
    52         }
    53 
    53