FromClause
extends Clause
in package
implements
IFromClause
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $joins : ArrayObject
- A set of joins for the referenced tables within this from clause
- $referenced_table_names : array<string|int, mixed>
- A list of the names of the tables which are referenced tables within this from clause.
- $statement : IStatement
- $table_references : ArrayObject
- A set of tables which are referenced in this from clause. This includes the table being directly selected/deleted from as well as those being indirectly selected/deleted from using joins
- $tables_to_join : array<string|int, mixed>
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- __toString() : string
- extends() : bool
- getReflection() : ReflectionClass
- getStatement() : IStatement
- getTableReferences() : ArrayObject
- joinTable() : mixed
- init() : mixed
- {@inheritdoc}
- addReferencedTable() : mixed
- createJoin() : ITable
- getJoins() : ArrayObject
- isReferencedTable() : bool
- joinTables() : void
- setStatement() : mixed
Properties
$joins
A set of joins for the referenced tables within this from clause
protected
ArrayObject
$joins
$referenced_table_names
A list of the names of the tables which are referenced tables within this from clause.
protected
array<string|int, mixed>
$referenced_table_names
= []
Tags
$statement
protected
IStatement
$statement
$table_references
A set of tables which are referenced in this from clause. This includes the table being directly selected/deleted from as well as those being indirectly selected/deleted from using joins
protected
ArrayObject
$table_references
$tables_to_join
protected
array<string|int, mixed>
$tables_to_join
= []
$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(IStatement $statement, ITable $table) : mixed
Parameters
- $statement : IStatement
- $table : ITable
Tags
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
__toString()
public
__toString() : string
Return values
stringextends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassgetStatement()
public
getStatement() : IStatement
Tags
Return values
IStatementgetTableReferences()
public
getTableReferences() : ArrayObject
Tags
Return values
ArrayObjectjoinTable()
public
joinTable(ITable|string $table[, string $type = IFromClause::JOIN_TYPE_INNER ][, string $alias = null ]) : mixed
Parameters
- $table : ITable|string
- $type : string = IFromClause::JOIN_TYPE_INNER
- $alias : string = null
-
The alias the table should be given in joining it
Tags
init()
{@inheritdoc}
protected
init() : mixed
Tags
addReferencedTable()
private
addReferencedTable(ITable $table) : mixed
Parameters
- $table : ITable
createJoin()
private
createJoin(ITableRelationship $relationship[, mixed $type = IFromClause::JOIN_TYPE_INNER ][, mixed $alias = null ]) : ITable
Parameters
- $relationship : ITableRelationship
- $type : mixed = IFromClause::JOIN_TYPE_INNER
- $alias : mixed = null
Return values
ITablegetJoins()
private
getJoins() : ArrayObject
Return values
ArrayObjectisReferencedTable()
private
isReferencedTable(ITable $table) : bool
Parameters
- $table : ITable
Return values
booljoinTables()
private
joinTables() : void
setStatement()
private
setStatement(IStatement $statement) : mixed
Parameters
- $statement : IStatement