import v1.1.0_RC2 | 2009-09-20
This commit is contained in:
@ -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$
|
||||
* @version $Id: Abstract.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -60,6 +60,23 @@ abstract class Zend_Tool_Framework_Client_Abstract implements Zend_Tool_Framewor
|
||||
*/
|
||||
protected $_debugLogger = null;
|
||||
|
||||
public function __construct($options = array())
|
||||
{
|
||||
if ($options) {
|
||||
$this->setOptions($options);
|
||||
}
|
||||
}
|
||||
|
||||
public function setOptions(Array $options)
|
||||
{
|
||||
foreach ($options as $optionName => $optionValue) {
|
||||
$setMethodName = 'set' . $optionName;
|
||||
if (method_exists($this, $setMethodName)) {
|
||||
$this->{$setMethodName}($optionValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getName() - Return the client name which can be used to
|
||||
* query the manifest if need be.
|
||||
|
Reference in New Issue
Block a user