Methods summary
public static
array(method_name
|
#
list_promisable_methods( )
Returns an array mapping promisable methods to return types. A promisable
method is one that is dependent only on immutable inputs and is guaranteed to
return an instance of a certain type.
Returns an array mapping promisable methods to return types. A promisable
method is one that is dependent only on immutable inputs and is guaranteed to
return an instance of a certain type.
Returns
array(method_name => class_name, ...)
Implementation of
|
public static
Alchemy\core\schema\Table
|
#
find( string $name )
Retrieve the table registered for a given name.
Retrieve the table registered for a given name.
Parameters
Returns
|
public static
|
|
public
|
#
__construct( string $type, array $name, array $args = array() )
Object constructor
Parameters
- $type
string $name name of table
- $name
array $columndefs array("name" => Column, "name" => Column, ...)
- $args
array $indexdefs array("name" => Index, "name" => Index, ...)
Overrides
|
public
|
|
public
|
|
public
string
|
#
getName( )
Get the table name
Returns
string
|
public
|
|
public
boolean
|
#
hasColumn( string $name )
Return true if the given column exists
Return true if the given column exists
Parameters
Returns
boolean
|
public
array
|
#
listColumns( )
List all configured columns
List all configured columns
Returns
array array(Name => Column, ...)
|
public
array
|
#
listDependancies( )
List names of table I depend on
List names of table I depend on
Returns
array
|
public
array
|
#
listDependants( )
List names of tables that depend on me
List names of tables that depend on me
Returns
array
|
public
array
|
#
listIndexes( )
List all additional column indexes
List all additional column indexes
Returns
array array(Name => Index, ...)
|
public
Index::PrimaryKey
|
#
getPrimaryKey( )
Get this table's primary key index
Get this table's primary key index
Returns
Index::PrimaryKey
|
public
|
#
register( mixed $force = false )
Register this Table as canonical for its name
Register this Table as canonical for its name
|
protected
|
#
resolve( )
Lazy-resolve the whole Table
Lazy-resolve the whole Table
|