.

DBQueryUpdate Class Reference
[Model]

An Update Query. More...

Inheritance diagram for DBQueryUpdate:
DBQueryOrdered DBQueryLimited DBQuery IDBQuery IDBSqlBuilder IPolicyHolder IDBWhereHolder

List of all members.

Public Member Functions

  get_sql ()
  Return SQL fragment.

Public Attributes

const  IGNORE = 2
  Ignore Errors Policy.

Detailed Description

An Update Query.

Author:
Gerd Riesselmann

Definition at line 10 of file dbquery.update.cls.php.


Member Function Documentation

DBQueryUpdate::get_sql (  ) 

Return SQL fragment.

Returns:
string

Implements IDBSqlBuilder.

Definition at line 21 of file dbquery.update.cls.php.

00021                                   {
00022                 $params = array();
00023                 if ($this->policy & self::IGNORE) {
00024                         $params['ignore'] = true;
00025                 }
00026                 $params['fields'] = $this->fields; 
00027                 $params['limit'] = $this->get_limit();
00028                 $params['order_by'] = $this->get_orders();
00029                 $builder = DBSqlBuilderFactory::create_builder(DBSqlBuilderFactory::UPDATE, $this, $params);
00030                 return $builder->get_sql();             
00031         }       

Member Data Documentation

Ignore Errors Policy.

Definition at line 14 of file dbquery.update.cls.php.


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