/** * @return \PDOStatement */ public function execute() { $query = 'DELETE FROM ' . $this->table . $this->get_filters(); compiler::break_cache($this->table); cache::break_cache($this->table); return _db::query($query, $this->parameters); }
public function execute() { $query = 'UPDATE ' . $this->table . ' SET ' . $this->get_values() . $this->get_filters(); compiler::break_cache($this->table); cache::break_cache($this->table); return _db::query($query, $this->parameters); }
public function execute() { $query = 'REPLACE INTO ' . $this->table . ' SET ' . $this->get_values(); _db::query($query, $this->parameters); $id = _db::insert_id(); compiler::break_cache($this->table); cache::break_cache($this->table); return $id; }