Zend\Db\Sql\Update
Synopsis
class Update
extends AbstractSql
implements
SqlInterface,PreparableSqlInterface
{
- // constants
- const SPECIFICATION_UPDATE = 'update';
- const SPECIFICATION_WHERE = 'where';
- const VALUES_MERGE = 'merge';
- const VALUES_SET = 'set';
- // members
- protected array $specifications;
- protected string|TableIdentifier $table;
- protected bool $emptyWhereProtection;
- protected array $set;
- protected string|Where $where;
- // Inherited members from AbstractSql
- protected array $specifications;
- protected array $processInfo;
- protected array $instanceParameterIndex;
- // methods
- public void __construct()
- public Update table()
- public Update set()
- public Select where()
- public void getRawState()
- public void prepareStatement()
- public string getSqlString()
- public mixed __get()
- public void __clone()
- // Inherited methods from AbstractSql
- protected void processExpression()
- protected string createSqlFromSpecificationAndParameters()
- protected void processSubSelect()
Hierarchy
Extends
Implements
Constants
Name | Value |
---|---|
SPECIFICATION_UPDATE | 'update' |
SPECIFICATION_WHERE | 'where' |
VALUES_MERGE | 'merge' |
VALUES_SET | 'set' |
Members
protected
- $emptyWhereProtection — Zend\Db\Sql\bool
- $instanceParameterIndex — array
- $processInfo — string
- $set — array
- $specifications
- $specifications — array
- $table — Zend\Db\Sql\string|TableIdentifier
- $where — Zend\Db\Sql\string|Where
Methods
public
- __construct() — Constructor
- __clone() — __clone
- __get() — Variable overloading
- getRawState()
- getSqlString() — Get SQL string for statement
- prepareStatement() — Prepare statement
- set() — Set key/value pairs to update
- table() — Specify table for statement
- where() — Create where clause