UpdateStatement
extends Statement
in package
implements
IUpdateStatement
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $bound_columns : ArrayObject
- $dml_statement_syntax_pregs : array<string|int, mixed>
- $limit_clause : ILimitClause
- $modifiers : int
- $schemas : array<string|int, mixed>
- $statement_syntax_pregs : array<string|int, mixed>
- $update_clause : IUpdateClause
- $where_clause : IWhereClause
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- __toString() : mixed
- {@inheritdoc}
- andWhere() : mixed
- bind() : mixed
- extends() : bool
- fromString() : IStatement|null
- getLimitClause() : ILimitClause
- getReflection() : ReflectionClass
- getUpdateClause() : IUpdateClause
- getWhereClause() : IWhereClause
- isOff() : bool
- isOn() : bool
- limit() : mixed
- off() : mixed
- on() : mixed
- orWhere() : mixed
- where() : mixed
- init() : mixed
- {@inheritdoc}
- setSchemas() : mixed
- _where() : mixed
Properties
$bound_columns
protected
ArrayObject
$bound_columns
$dml_statement_syntax_pregs
protected
static array<string|int, mixed>
$dml_statement_syntax_pregs
= ["select" => "/^(SELECT )/i"]
$limit_clause
protected
ILimitClause
$limit_clause
$modifiers
protected
int
$modifiers
$schemas
protected
array<string|int, mixed>
$schemas
= []
$statement_syntax_pregs
protected
static array<string|int, mixed>
$statement_syntax_pregs
= ["ddl" => "", "dml" => "/^(CALL|DELETE|DO|HANDLE|IMPORT TABLE|INSERT|LOAD DATA INFILE|LOAD XML|REPLACE|SELECT|WITH)/i", "tcl" => "", "utility" => "/^(DESCRIBE|DESC|EXPLAIN|HELP|USE)/i"]
$update_clause
protected
IUpdateClause
$update_clause
$where_clause
protected
IWhereClause
$where_clause
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__construct()
public
__construct(ITable $table) : mixed
Parameters
- $table : ITable
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
__toString()
{@inheritdoc}
public
__toString() : mixed
Tags
andWhere()
public
andWhere(mixed $where) : mixed
Parameters
- $where : mixed
Tags
bind()
public
bind(mixed $column, mixed $value[, mixed $encrypt = false ]) : mixed
Parameters
- $column : mixed
- $value : mixed
- $encrypt : mixed = false
-
bool
Tags
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolfromString()
public
static fromString(string $statement, array<string|int, mixed> $schemas) : IStatement|null
Parameters
- $statement : string
- $schemas : array<string|int, mixed>
-
The schemas the statement is to be created for and to/will be executed on
Tags
Return values
IStatement|nullgetLimitClause()
public
getLimitClause() : ILimitClause
Tags
Return values
ILimitClausegetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassgetUpdateClause()
public
getUpdateClause() : IUpdateClause
Tags
Return values
IUpdateClausegetWhereClause()
public
getWhereClause() : IWhereClause
Tags
Return values
IWhereClauseisOff()
public
isOff(int $bit) : bool
Parameters
- $bit : int
Tags
Return values
boolisOn()
public
isOn(int $bit) : bool
Parameters
- $bit : int
Tags
Return values
boollimit()
public
limit(mixed $limit) : mixed
Parameters
- $limit : mixed
Tags
off()
public
off(int $bit) : mixed
Parameters
- $bit : int
Tags
on()
public
on(int $bit) : mixed
Parameters
- $bit : int
Tags
orWhere()
public
orWhere(mixed $where) : mixed
Parameters
- $where : mixed
Tags
where()
public
where(mixed $where) : mixed
Parameters
- $where : mixed
Tags
init()
{@inheritdoc}
protected
init() : mixed
Tags
setSchemas()
protected
setSchemas(array<string|int, mixed> $schemas) : mixed
Parameters
- $schemas : array<string|int, mixed>
_where()
private
_where(array<string|int, mixed>|callable $where[, mixed $logical_operator = IConditionalExpression::LOGICAL_OPERATOR_AND ]) : mixed
Parameters
- $where : array<string|int, mixed>|callable
- $logical_operator : mixed = IConditionalExpression::LOGICAL_OPERATOR_AND