DeleteStatement
extends Statement
in package
implements
IDeleteStatement
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $delete_clause : IDeleteClause
- $dml_statement_syntax_pregs : array<string|int, mixed>
- $from_clause : IFromClause
- $limit_clause : ILimitClause
- $modifiers : int
- $order_by_clause : IOrderByClause
- $schemas : array<string|int, mixed>
- $statement_syntax_pregs : array<string|int, mixed>
- $where_clause : IWhereClause
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- __toString() : mixed
- addOrderBy() : mixed
- andWhere() : mixed
- extends() : bool
- fromString() : IStatement|null
- getDeleteClause() : IDeleteClause
- getFromClause() : IFromClause
- getLimitClause() : ILimitClause
- getOrderByClause() : IOrderByClause
- getReflection() : ReflectionClass
- getWhereClause() : IWhereClause
- ignore() : mixed
- isOff() : bool
- isOn() : bool
- limit() : mixed
- lowPriority() : mixed
- off() : mixed
- on() : mixed
- orderBy() : mixed
- orWhere() : mixed
- quick() : mixed
- where() : mixed
- init() : mixed
- {@inheritdoc}
- setSchemas() : mixed
- _where() : mixed
Properties
$delete_clause
protected
IDeleteClause
$delete_clause
$dml_statement_syntax_pregs
protected
static array<string|int, mixed>
$dml_statement_syntax_pregs
= ["select" => "/^(SELECT )/i"]
$from_clause
protected
IFromClause
$from_clause
$limit_clause
protected
ILimitClause
$limit_clause
$modifiers
protected
int
$modifiers
$order_by_clause
protected
IOrderByClause
$order_by_clause
$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"]
$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()
public
__toString() : mixed
addOrderBy()
public
addOrderBy(mixed $field[, mixed $order = IOrderByClause::ORDER_ASC ]) : mixed
Parameters
- $field : mixed
- $order : mixed = IOrderByClause::ORDER_ASC
Tags
andWhere()
public
andWhere(mixed $where) : mixed
Parameters
- $where : mixed
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|nullgetDeleteClause()
public
getDeleteClause() : IDeleteClause
Tags
Return values
IDeleteClausegetFromClause()
public
getFromClause() : IFromClause
Tags
Return values
IFromClausegetLimitClause()
public
getLimitClause() : ILimitClause
Tags
Return values
ILimitClausegetOrderByClause()
public
getOrderByClause() : IOrderByClause
Tags
Return values
IOrderByClausegetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassgetWhereClause()
public
getWhereClause() : IWhereClause
Tags
Return values
IWhereClauseignore()
public
ignore() : mixed
Tags
isOff()
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
lowPriority()
public
lowPriority() : mixed
Tags
off()
public
off(int $bit) : mixed
Parameters
- $bit : int
Tags
on()
public
on(int $bit) : mixed
Parameters
- $bit : int
Tags
orderBy()
public
orderBy(mixed $field[, mixed $order = IOrderByClause::ORDER_ASC ]) : mixed
Parameters
- $field : mixed
- $order : mixed = IOrderByClause::ORDER_ASC
Tags
orWhere()
public
orWhere(mixed $where) : mixed
Parameters
- $where : mixed
Tags
quick()
public
quick() : 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[, string $logical_operator = IConditionalExpression::LOGICAL_OPERATOR_AND ]) : mixed
Parameters
- $where : array<string|int, mixed>|callable
- $logical_operator : string = IConditionalExpression::LOGICAL_OPERATOR_AND