コード例 #1
0
ファイル: delete.php プロジェクト: robchett/framework
 /**
  * @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);
 }
コード例 #2
0
ファイル: update.php プロジェクト: robchett/framework
 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);
 }
コード例 #3
0
ファイル: replace.php プロジェクト: robchett/framework
 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;
 }