Esempio n. 1
0
 /**
  * @param	string	$pref
  * @return	bool
  */
 function CreateTables($pref)
 {
     $tableArray = GetTablesArray($pref);
     $original = GetTablesArray('');
     foreach ($tableArray as $key => $tname) {
         $sql = trim($this->_commandCreator->CreateTable($original[$key], $pref));
         if ($sql === '') {
             return false;
         }
         if (!$this->_connector->Execute($sql)) {
             return $tname;
         }
     }
     return true;
 }