.

DBSqlBuilderDelete Class Reference
[Model]

Build a delete query. More...

Inheritance diagram for DBSqlBuilderDelete:
DBSqlBuilderBase IDBSqlBuilder DBSqlBuilderDeleteMysql

List of all members.

Protected Member Functions

  get_sql_template ()
  get_substitutes ()

Detailed Description

Build a delete query.

Author:
Gerd Riesselmann

Definition at line 8 of file dbsqlbuilder.delete.cls.php.


Member Function Documentation

DBSqlBuilderDelete::get_sql_template (  )  [protected]

Reimplemented from DBSqlBuilderBase.

Definition at line 9 of file dbsqlbuilder.delete.cls.php.

00009                                               {         
00010                 return 'DELETE FROM %!table%where%order_by%limit';              
00011         }
DBSqlBuilderDelete::get_substitutes (  )  [protected]

Reimplemented from DBSqlBuilderBase.

Definition at line 13 of file dbsqlbuilder.delete.cls.php.

00013                                              {
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         }

The documentation for this class was generated from the following file: