Documentation

Table extends Component
in package
implements ITable

Tags
author

Ramone Burrell ramone@ramoneburrell.com

since

Version 0.1.0

Table of Contents

Interfaces

ITable

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 = []

$foreign_key_fields_relationships

protected ArrayObject $foreign_key_fields_relationships

$foreign_key_fields_relationships_cache_key

protected string $foreign_key_fields_relationships_cache_key

$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

Methods

__callStatic()

public static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
$method : mixed
$arguments : array<string|int, mixed>

__get()

public __get(string $property) : mixed
Parameters
$property : string

__toString()

{@inheritdoc}

public __toString() : mixed
Tags
see
Component::__toString()

extends()

public extends(ReflectionClass $reflector) : bool
Parameters
$reflector : ReflectionClass
Return values
bool

getColumnNames()

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
ArrayObject

getForeignKeyFieldRelationship()

public getForeignKeyFieldRelationship(ITable $table) : ArrayObject|null
Parameters
$table : ITable
Return values
ArrayObject|null

getReferencedKeyFieldRelationship()

public getReferencedKeyFieldRelationship(ITable $table) : ArrayObject|null
Parameters
$table : ITable
Return values
ArrayObject|null

getReflection()

public getReflection() : ReflectionClass
Return values
ReflectionClass

getSchemaDsnName()

public getSchemaDsnName() : string
Return values
string

isColumn()

public isColumn(string $column_name) : bool
Parameters
$column_name : string
Return values
bool

init()

{@inheritdoc}

protected init() : mixed
Tags
see
Component::init()

cacheForeignKeyFieldsRelationships()

private cacheForeignKeyFieldsRelationships() : null
Tags
access

private

Return values
null

cacheReferencedKeyFieldsRelationships()

private cacheReferencedKeyFieldsRelationships() : null
Tags
access

private

Return values
null

getForeignKeyFieldsRelationshipsCacheKey()

private getForeignKeyFieldsRelationshipsCacheKey() : string
Return values
string

getReferencedKeyFieldsRelationshipsCacheKey()

private getReferencedKeyFieldsRelationshipsCacheKey() : string
Return values
string

setComment()

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

        
On this page

Search results