Class Table
A representation of a database table.
- ICanBoogie\Object implements ICanBoogie\ToArrayRecursive uses ICanBoogie\ToArrayRecursiveTrait, ICanBoogie\PrototypeTrait
- ICanBoogie\ActiveRecord\Table
Direct known subclasses
Indirect known subclasses
Icybee\ActiveRecord\Model\Constructor
,
Icybee\Modules\Articles\Model
,
Icybee\Modules\Pages\Model
,
Icybee\Modules\Registry\Model
,
Icybee\Modules\Sites\Model
,
Icybee\Modules\Taxonomy\Terms\Model
,
Icybee\Modules\Taxonomy\Vocabulary\Model
,
Icybee\Modules\Users\Model
,
Icybee\Modules\Users\NonceLogin\TicketModel
,
Icybee\Modules\Users\Roles\Model
,
Icybee\Modules\Comments\Model
,
Icybee\Modules\Contents\Model
,
Icybee\Modules\Files\Model
,
Icybee\Modules\Forms\Model
,
Icybee\Modules\Images\Model
,
Icybee\Modules\Members\Model
,
Icybee\Modules\Nodes\Model
,
Icybee\Modules\Pages\ContentModel
Methods summary
protected
ICanBoogie\ActiveRecord\Database
|
|
protected
string
|
|
protected
string
|
|
protected
ICanBoogie\ActiveRecord\mixed
|
|
protected
string
|
|
protected
array
|
|
protected
string
|
|
public
|
#
__construct( array $attributes )
|
public
|
#
__invoke( mixed $query, array $args = [], array $options = [] )
Alias to the |
public
|
|
public
|
|
public
boolean
|
|
protected
array
|
|
public
string
|
|
public
Database\Statement
|
|
public
|
|
public
mixed
|
|
public
Database\Statement
|
|
protected
|
|
public
|
|
protected
|
|
public
mixed
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
|
Methods inherited from ICanBoogie\Object
from()
,
resolve_facade_properties()
,
resolve_private_properties()
,
to_array()
,
to_json()
Methods inherited from ICanBoogie\ToArrayRecursive
Methods used from ICanBoogie\ToArrayRecursiveTrait
Methods used from ICanBoogie\PrototypeTrait
__call()
,
__get()
,
__set()
,
__sleep()
,
__wakeup()
,
get_prototype()
,
has_method()
,
has_property()
,
last_chance_get()
,
last_chance_set()
Magic methods summary
Constants summary
string |
T_ALIAS
|
'alias' |
|
string |
T_CONNECTION
|
'connection' |
|
string |
T_EXTENDS
|
'extends' |
|
string |
T_IMPLEMENTS
|
'implements' |
|
string |
T_NAME
|
'name' |
|
string |
T_SCHEMA
|
'schema' |
|
string |
ALIAS
|
'alias' |
|
string |
CONNECTION
|
'connection' |
|
string |
EXTENDING
|
'extends' |
|
string |
IMPLEMENTING
|
'implements' |
|
string |
NAME
|
'name' |
|
string |
SCHEMA
|
'schema' |
Properties summary
protected
|
$connection |
#
A database connection. |
protected
string
|
$name |
#
Name of the table, including the prefix defined by the model's connection. |
protected
string
|
$name_unprefixed |
#
Unprefixed version of the table's name. |
protected
mixed
|
$primary |
#
Primary key of the table, retrieved from the schema defined using the |
protected
string
|
$alias |
#
Alias for the table's name, which can be defined using the |
protected
array
|
$schema |
#
Schema for the table. |
protected
|
$parent |
#
The parent is used when the table is in a hierarchy, which is the case if the table extends another table. |
protected
array
|
$implements | |
protected
string
|
$update_join |
#
SQL fragment for the FROM clause of the query, made of the table's name and alias and those of the hierarchy. |
protected
string
|
$select_join |
#
SQL fragment for the FROM clause of the query, made of the table's name and alias and those of the related tables, inherited and implemented. |
Magic properties
public read-only
|
$connection |
|
#
Connection used by the table. |
public read-only
array
|
$schema |
|
#
The schema of the table. |
public read-only
array
|
$extended_schema |
|
#
The extended schema of the table. |
public read-only
string
|
$name_unprefixed |
|
#
Unprefixed name of the table. |
public read-only
mixed
|
$primary |
|
#
Primary key of the table, or |
public read-only
string
|
$alias |
|
#
The alias name of the table. |
public read-only
|
$parent |
|
#
The parent of the table. |