public __construct ( mixed $config = [] ) : void | ||
$config | mixed | Array of user-specified config options, or just the Db Adapter. |
Результат | void |
public function __construct($config = array())
{
/**
* Allow a scalar argument to be the Adapter object or Registry key.
*/
if (!is_array($config)) {
$config = array(self::ADAPTER => $config);
}
if ($config) {
$this->setOptions($config);
}
$this->_setup();
$this->init();
}
public function __construct($config = null) { if (isset($this->_use_adapter)) { $config = $this->_use_adapter; } return parent::__construct($config); }