Sql_Table_Entity
extends Core_Empty_Entity
in package
SQL.
Tags
Table of Contents
Properties
- $auto_increment : mixed
- $avg_row_legth : mixed
- $collation : mixed
- $data_length : mixed
- $engine : mixed
- $fragmented : mixed
- $index_length : mixed
- $name : mixed
- $row_format : mixed
- $table_rows : mixed
- $version : mixed
- $_columns : mixed
- Columns
- $_dataValues : array<string|int, mixed>
- data-values, e.g. dataMyValue
- $_modelName : string
- Name of the model
- $_tableColums : array<string|int, mixed>
- Table columns
Methods
- __construct() : mixed
- Constructor
- __get() : mixed
- Utilized for reading data from inaccessible properties
- __isset() : bool
- Triggered by calling isset() or empty() on inaccessible properties
- data_lengthBackend() : string
- Backend callback method
- delete() : self
- Delete
- fragmentedBackend() : string
- Backend callback method
- getDataValues() : array<string|int, mixed>
- Get dataValues
- getModelName() : string
- Get model name, e.g. 'book' for 'Book_Model'
- getPrimaryKey() : mixed
- Get primary key value
- getPrimaryKeyName() : mixed
- Get primary key value
- getRelatedSite() : null
- Get Related Site
- getTableColumns() : array<string|int, mixed>
- Get table colums
- index_lengthBackend() : string
- Backend callback method
- optimize() : mixed
- Optimize Table
- setTableColums() : self
- Set table columns
- truncate() : mixed
- Truncate Table
- _loadColumns() : self
- Load columns list
Properties
$auto_increment
public
mixed
$auto_increment
= \NULL
$avg_row_legth
public
mixed
$avg_row_legth
= \NULL
$collation
public
mixed
$collation
= \NULL
$data_length
public
mixed
$data_length
= \NULL
$engine
public
mixed
$engine
= \NULL
$fragmented
public
mixed
$fragmented
= \NULL
$index_length
public
mixed
$index_length
= \NULL
$name
public
mixed
$name
= \NULL
$row_format
public
mixed
$row_format
= \NULL
$table_rows
public
mixed
$table_rows
= \NULL
$version
public
mixed
$version
= \NULL
$_columns
Columns
protected
mixed
$_columns
= \NULL
$_dataValues
data-values, e.g. dataMyValue
protected
array<string|int, mixed>
$_dataValues
= array()
$_modelName
Name of the model
protected
string
$_modelName
= 'sql_table'
$_tableColums
Table columns
protected
array<string|int, mixed>
$_tableColums
= array('name' => array('datatype' => 'string', 'type' => 'string', 'max_length' => 255, 'default' => \NULL, 'null' => \FALSE), 'engine' => array('datatype' => 'string', 'type' => 'string', 'max_length' => 255, 'default' => \NULL, 'null' => \FALSE), 'collation' => array('datatype' => 'string', 'type' => 'string', 'max_length' => 255, 'default' => \NULL, 'null' => \FALSE), 'auto_increment' => array('datatype' => 'int', 'type' => 'int'))
Methods
__construct()
Constructor
public
__construct() : mixed
__get()
Utilized for reading data from inaccessible properties
public
__get(string $property) : mixed
Parameters
- $property : string
-
property name
__isset()
Triggered by calling isset() or empty() on inaccessible properties
public
__isset(string $property) : bool
Parameters
- $property : string
-
property name
Return values
booldata_lengthBackend()
Backend callback method
public
data_lengthBackend() : string
Return values
stringdelete()
Delete
public
delete([mixed $primaryKey = NULL ]) : self
Parameters
- $primaryKey : mixed = NULL
Return values
selffragmentedBackend()
Backend callback method
public
fragmentedBackend() : string
Return values
stringgetDataValues()
Get dataValues
public
getDataValues() : array<string|int, mixed>
Return values
array<string|int, mixed>getModelName()
Get model name, e.g. 'book' for 'Book_Model'
public
getModelName() : string
Return values
stringgetPrimaryKey()
Get primary key value
public
getPrimaryKey() : mixed
getPrimaryKeyName()
Get primary key value
public
getPrimaryKeyName() : mixed
getRelatedSite()
Get Related Site
public
getRelatedSite() : null
Return values
nullgetTableColumns()
Get table colums
public
getTableColumns() : array<string|int, mixed>
Return values
array<string|int, mixed>index_lengthBackend()
Backend callback method
public
index_lengthBackend() : string
Return values
stringoptimize()
Optimize Table
public
optimize() : mixed
setTableColums()
Set table columns
public
setTableColums(array<string|int, mixed> $tableColums) : self
Parameters
- $tableColums : array<string|int, mixed>
-
columns
Return values
selftruncate()
Truncate Table
public
truncate() : mixed
_loadColumns()
Load columns list
protected
_loadColumns() : self