import v2.0.0.0_RC3 | 2012-07-01

https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -17,7 +17,7 @@
* @subpackage Framework
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Config.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: Config.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -28,21 +28,21 @@
*/
class Zend_Tool_Framework_Client_Config
{
protected $_configFilepath = null;
/**
* @var Zend_Config
*/
protected $_config = null;
public function __config($options = array())
{
if ($options) {
$this->setOptions($options);
}
}
public function setOptions(Array $options)
{
foreach ($options as $optionName => $optionValue) {
@ -52,7 +52,7 @@ class Zend_Tool_Framework_Client_Config
}
}
}
public function setConfigFilepath($configFilepath)
{
if (!file_exists($configFilepath)) {
@ -61,9 +61,9 @@ class Zend_Tool_Framework_Client_Config
}
$this->_configFilepath = $configFilepath;
$suffix = substr($configFilepath, -4);
switch ($suffix) {
case '.ini':
require_once 'Zend/Config/Ini.php';
@ -83,23 +83,23 @@ class Zend_Tool_Framework_Client_Config
. $suffix . ' at location ' . $configFilepath
);
}
return $this;
}
public function getConfigFilepath()
{
return $this->_configFilepath;
}
public function get($name, $defaultValue)
{
return $this->_config->get($name, $defaultValue);
}
public function __get($name)
{
return $this->_config->{$name};
}
}