Hoa central
Public Member Functions | Protected Attributes | List of all members
Hoa\Database\Query\Delete Class Reference
Inheritance diagram for Hoa\Database\Query\Delete:

Public Member Functions

 from ($source)
 
 __toString ()
 
- Public Member Functions inherited from Hoa\Database\Query\Where
 where ($expression)
 
 __call ($name, Array $values)
 
 __get ($name)
 
 reset ()
 
 __toString ()
 

Protected Attributes

 $_from = null
 
- Protected Attributes inherited from Hoa\Database\Query\Where
 $_where = []
 
 $_logicOperator = null
 

Detailed Description

Class .

Build a DELETE query.

Definition at line 47 of file Delete.php.

Member Function Documentation

Hoa\Database\Query\Delete::__toString ( )

Generate the query.

Returns
string

Implements Hoa\Database\Query\Dml.

Definition at line 76 of file Delete.php.

77  {
78  return 'DELETE FROM ' . $this->_from . parent::__toString();
79  }
Hoa\Database\Query\Delete::from (   $source)

Set the table name.

Parameters
string$sourceTable name.
Returns

Definition at line 64 of file Delete.php.

65  {
66  $this->_from = $source;
67 
68  return $this;
69  }

Member Data Documentation

Hoa\Database\Query\Delete::$_from = null
protected

Definition at line 54 of file Delete.php.


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