/** * Prepares the query of type DROP TABLE. * * @ add the checkings * @return a string, containing the SQL query 'DROP TABLE' * @param DB_Table_Delete object $QueryData */ function PrepareTableDeleteQuery($QueryData) { self::$table_list_cache = null; $SQL = ' DROP TABLE '; $tables = $QueryData->getDeleteTables(); if (is_array($tables)) { $table_names = array(); foreach ($tables as $table_name) { $table_names[] = $table_name; } $SQL .= implode(', ', $table_names); } else { $SQL .= $tables . ' '; } return $SQL; }