/**
  * check config and return status
  *
  * @return array
  * 
  * @todo add check if db settings have changed?
  */
 public function checkConfig()
 {
     Setup_Core::setupDatabaseConnection();
     $checkDB = Setup_Core::get(Setup_Core::CHECKDB);
     $result = array('configExists' => Setup_Core::configFileExists(), 'configWritable' => Setup_Core::configFileWritable(), 'checkDB' => $checkDB, 'checkLogger' => $this->_controller->checkConfigLogger(), 'checkCaching' => $this->_controller->checkConfigCaching(), 'checkQueue' => $this->_controller->checkConfigQueue(), 'checkTmpDir' => $this->_controller->checkDir('tmpdir'), 'checkSession' => $this->_controller->checkConfigSession(), 'checkFilesDir' => $this->_controller->checkDir('filesdir'), 'setupRequired' => empty($checkDB) ? TRUE : $this->_controller->setupRequired());
     return $result;
 }
Пример #2
0
 /**
  * check config and return status
  *
  * @return array
  * 
  * @todo add check if db settings have changed?
  */
 public function checkConfig()
 {
     // check first if db settings have changed?
     //if (!Setup_Core::get(Setup_Core::CHECKDB))
     Setup_Core::setupDatabaseConnection();
     $checkDB = Setup_Core::get(Setup_Core::CHECKDB);
     $result = array('configExists' => Setup_Core::configFileExists(), 'configWritable' => Setup_Core::configFileWritable(), 'checkDB' => $checkDB, 'checkLogger' => $this->_controller->checkConfigLogger(), 'checkCaching' => $this->_controller->checkConfigCaching(), 'checkTmpDir' => $this->_controller->checkDir('tmpdir'), 'checkSessionDir' => $this->_controller->checkDir('path', 'session'), 'checkFilesDir' => $this->_controller->checkDir('filesdir'), 'setupRequired' => empty($checkDB) ? TRUE : $this->_controller->setupRequired());
     return $result;
 }