gyro/core/model/base/queries/dbquery.delete.php
Go to the documentation of this file.00001 <?php 00002 require_once dirname(__FILE__) . '/dbquery.ordered.cls.php'; 00003 00004 /** 00005 * A delete query 00006 * 00007 * @author Gerd Riesselmann 00008 * @ingroup Model 00009 */ 00010 class DBQueryDelete extends DBQueryOrdered { 00011 /** 00012 * Return SQL fragment 00013 * 00014 * @return string 00015 */ 00016 public function get_sql() { 00017 $params = array(); 00018 $params['fields'] = $this->fields; 00019 $params['limit'] = $this->get_limit(); 00020 $params['order_by'] = $this->get_orders(); 00021 $builder = DBSqlBuilderFactory::create_builder(DBSqlBuilderFactory::DELETE, $this, $params); 00022 return $builder->get_sql(); 00023 } 00024 }