.

DBSqlBuilderDeleteMysql Class Reference
[Model]

Delete queries for MySQL. More...

Inheritance diagram for DBSqlBuilderDeleteMysql:
DBSqlBuilderDelete DBSqlBuilderBase IDBSqlBuilder

List of all members.

Public Member Functions

  get_sql ()
  Return SQL fragment.

Detailed Description

Delete queries for MySQL.

Author:
Gerd Riesselmann

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


Member Function Documentation

DBSqlBuilderDeleteMysql::get_sql (  ) 

Return SQL fragment.

Returns:
string

Reimplemented from DBSqlBuilderBase.

Definition at line 14 of file dbsqlbuilder.delete.mysql.cls.php.

00014                                   {
00015                 $template = $this->get_sql_template();
00016                 $vars = $this->get_substitutes();
00017                 if (empty($vars['%where']) && empty($vars['%order_by']) && empty($vars['%limit'])) {
00018                         $template = 'TRUNCATE %!table';
00019                 }
00020                 return $this->substitute_template($template, $vars);
00021         }

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