/** * Adds a column ordering rule to the ORDER BY list */ public function order($column = "", $order = "") { $column = Sanitize::toSqlName($column); $order = Sanitize::toUpperCase($order); if (!empty($column) && !empty($order)) { $this->_order[] = $column . " " . $order; } return $this; }
/** * Remove table and all rows */ public function dropTable($table) { $table = Sanitize::toSqlName($table); if ($result = $this->query("DROP TABLE " . $table)) { return $result; } return false; }