_config) { if (null === $this->_configName) { $this->_config = Qs_Config::getByInstance($this); } else { $this->_config = Qs_Config::get($this->_configName, Qs_Config::APP_TYPE); } } if (null === $field) { return $this->_config; } return $this->_config->get($field, $default); } public function getConfigArray($field = null, $default = null) { $config = $this->getConfig($field); if ($config instanceof Zend_Config) { $config = $config->toArray(); } if (!is_array($config)) { $config = (array) $config; } return empty($config) ? $default : $config; } }