Esempio n. 1
0
 /**
  * @throws CApiBaseException(Errs::Db_ExceptionError) 3001
  *
  * @return bool
  */
 public function createDatabase()
 {
     CDbCreator::ClearStatic();
     $aConnections =& CDbCreator::CreateConnector($this->oSettings);
     $oConnect = $aConnections[0];
     if ($oConnect) {
         $oConnect->ConnectNoSelect();
         $oConnect->Execute($this->oCommandCreator->createDatabase($this->oSettings->GetConf('DBName')));
     } else {
         throw new CApiBaseException(Errs::Db_ExceptionError);
     }
     return true;
 }