예제 #1
0
 /**
  * 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;
 }
예제 #2
0
 /**
  * Remove table and all rows
  */
 public function dropTable($table)
 {
     $table = Sanitize::toSqlName($table);
     if ($result = $this->query("DROP TABLE " . $table)) {
         return $result;
     }
     return false;
 }