Пример #1
0
 /**
  * Creates and truncates the tables in the list $aTables.
  *
  * @param array $aTables Names of the tables to be created.
  */
 function initTables($aTables)
 {
     foreach ($aTables as $table) {
         $result = $this->oaTable->createTable($table);
         if (PEAR::isError($result)) {
             return false;
         }
         $result = $this->oaTable->truncateTable($table);
         if (PEAR::isError($result)) {
             return false;
         }
     }
     return true;
 }