示例#1
0
 function removeTables()
 {
     $database = JFactory::getDBO();
     $tables = DMInstallHelper::getTablesList();
     foreach ($tables as $table) {
         $database->setQuery("DROP TABLE `{$table}`");
         $database->query();
     }
 }