gyro/core/model/base/sqlbuilder/dbsqlbuilder.delete.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Build a delete query 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup Model 00007 */ 00008 class DBSqlBuilderDelete extends DBSqlBuilderBase { 00009 protected function get_sql_template() { 00010 return 'DELETE FROM %!table%where%order_by%limit'; 00011 } 00012 00013 protected function get_substitutes() { 00014 $ret = array( 00015 '%!table' => $this->get_table($this->query->get_table()), 00016 '%where' => $this->get_where($this->query->get_wheres()), 00017 '%limit' => $this->get_limit(Arr::get_item($this->params, 'limit', array(0,0))), 00018 '%order_by' => $this->get_order_by(Arr::get_item($this->params, 'order_by', array())) 00019 ); 00020 return $ret; 00021 } 00022 }