Table
extends Component
in package
implements
ITable
Tags
Table of Contents
Interfaces
Properties
- $column_names : array<string|int, mixed>
- $columns : ArrayObject
- $comment : string|null
- $foreign_key_fields_relationships : ArrayObject
- $foreign_key_fields_relationships_cache_key : string
- $model : IModel
- $name : string
- $quanlified_name : string
- The qualified name for this table
- $referenced_key_fields_relationships : ArrayObject
- $referenced_key_fields_relationships_cache_key : string
- $schema_dsn_name : string
- The name of the data source name for the schema this table belongs to. This is used to retrieved the schema from the manager without storing the schema itself as a member of this table
- $type : string
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- __toString() : mixed
- {@inheritdoc}
- extends() : bool
- getColumn() : IColumn
- getColumnNames() : array<string|int, mixed>
- Gets the column names for this table
- getColumns() : ArrayObject
- getComment() : string|null
- getForeignKeyFieldRelationship() : ArrayObject|null
- getForeignKeyFieldsRelationships() : ArrayObject
- getModel() : IModel
- Gets an instance of the model this table represents
- getName() : string
- Gets the name of this table
- getQualifiedName() : string
- Gets the fully qualified name of this table
- getReferencedKeyFieldRelationship() : ArrayObject|null
- getReferencedKeyFieldsRelationships() : ArrayObject
- getReflection() : ReflectionClass
- getRelationship() : ITableRelationship|null
- getSchema() : ISchema
- getSchemaDsnName() : string
- getType() : string
- isColumn() : bool
- init() : mixed
- {@inheritdoc}
- cacheForeignKeyFieldsRelationships() : null
- cacheReferencedKeyFieldsRelationships() : null
- getForeignKeyFieldsRelationshipsCacheKey() : string
- getReferencedKeyFieldsRelationshipsCacheKey() : string
- setComment() : mixed
- setName() : mixed
- setQualifiedName() : mixed
- setSchemaDsnName() : mixed
- setType() : mixed
Properties
$column_names
protected
array<string|int, mixed>
$column_names
= []
$columns
protected
ArrayObject
$columns
$comment
protected
string|null
$comment
$foreign_key_fields_relationships
protected
ArrayObject
$foreign_key_fields_relationships
$foreign_key_fields_relationships_cache_key
protected
string
$foreign_key_fields_relationships_cache_key
$model
protected
IModel
$model
$name
protected
string
$name
$quanlified_name
The qualified name for this table
protected
string
$quanlified_name
$referenced_key_fields_relationships
protected
ArrayObject
$referenced_key_fields_relationships
$referenced_key_fields_relationships_cache_key
protected
string
$referenced_key_fields_relationships_cache_key
$schema_dsn_name
The name of the data source name for the schema this table belongs to. This is used to retrieved the schema from the manager without storing the schema itself as a member of this table
protected
string
$schema_dsn_name
$type
protected
string
$type
$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(string $name, ISchema $schema) : mixed
Parameters
- $name : string
- $schema : ISchema
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
__toString()
{@inheritdoc}
public
__toString() : mixed
Tags
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgetColumn()
public
getColumn(string $column_name) : IColumn
Parameters
- $column_name : string
Tags
Return values
IColumngetColumnNames()
Gets the column names for this table
public
getColumnNames() : array<string|int, mixed>
Return values
array<string|int, mixed>getColumns()
public
getColumns() : ArrayObject
Return values
ArrayObjectgetComment()
public
getComment() : string|null
Tags
Return values
string|nullgetForeignKeyFieldRelationship()
public
getForeignKeyFieldRelationship(ITable $table) : ArrayObject|null
Parameters
- $table : ITable
Return values
ArrayObject|nullgetForeignKeyFieldsRelationships()
public
getForeignKeyFieldsRelationships() : ArrayObject
Tags
Return values
ArrayObjectgetModel()
Gets an instance of the model this table represents
public
getModel() : IModel
Tags
Return values
IModelgetName()
Gets the name of this table
public
getName() : string
Tags
Return values
stringgetQualifiedName()
Gets the fully qualified name of this table
public
getQualifiedName() : string
Tags
Return values
stringgetReferencedKeyFieldRelationship()
public
getReferencedKeyFieldRelationship(ITable $table) : ArrayObject|null
Parameters
- $table : ITable
Return values
ArrayObject|nullgetReferencedKeyFieldsRelationships()
public
getReferencedKeyFieldsRelationships() : ArrayObject
Tags
Return values
ArrayObjectgetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassgetRelationship()
public
getRelationship(ITable $table) : ITableRelationship|null
Parameters
- $table : ITable
Tags
Return values
ITableRelationship|nullgetSchema()
public
getSchema() : ISchema
Return values
ISchemagetSchemaDsnName()
public
getSchemaDsnName() : string
Return values
stringgetType()
public
getType() : string
Tags
Return values
stringisColumn()
public
isColumn(string $column_name) : bool
Parameters
- $column_name : string
Return values
boolinit()
{@inheritdoc}
protected
init() : mixed
Tags
cacheForeignKeyFieldsRelationships()
private
cacheForeignKeyFieldsRelationships() : null
Tags
Return values
nullcacheReferencedKeyFieldsRelationships()
private
cacheReferencedKeyFieldsRelationships() : null
Tags
Return values
nullgetForeignKeyFieldsRelationshipsCacheKey()
private
getForeignKeyFieldsRelationshipsCacheKey() : string
Return values
stringgetReferencedKeyFieldsRelationshipsCacheKey()
private
getReferencedKeyFieldsRelationshipsCacheKey() : string
Return values
stringsetComment()
private
setComment(string $comment) : mixed
Parameters
- $comment : string
setName()
private
setName(string $name) : mixed
Parameters
- $name : string
setQualifiedName()
private
setQualifiedName(string $qualified_name) : mixed
Parameters
- $qualified_name : string
setSchemaDsnName()
private
setSchemaDsnName(string $schema_dsn_name) : mixed
Parameters
- $schema_dsn_name : string
setType()
private
setType(string $type) : mixed
Parameters
- $type : string