/** * Delete rows which match to criteria * @param Criteria $c Criteria filter */ public function del(Criteria $c) { if (!$c) { $c = new Criteria(); } $where = $c->prepareQuery(); $prefix = Config::get("DB_PREFIX"); $this->db->sqlDelete($prefix . $this->dbTable, $where); }