Sql_Table_Field_Entity
extends Core_Empty_Entity
in package
SQL.
Tags
Table of Contents
Properties
- $_columns : mixed
- Columns
- $_dataValues : array<string|int, mixed>
- data-values, e.g. dataMyValue
- $_modelName : string
- Name of the model
- $_tableColums : array<string|int, mixed>
- Fields
- $_tableName : mixed
- Table name
- $_values : mixed
Methods
- __call() : mixed
- Triggered when invoking inaccessible methods in an object context
- __construct() : mixed
- Constructor
- __get() : mixed
- Utilized for reading data from inaccessible properties
- __isset() : bool
- Triggered by calling isset() or empty() on inaccessible properties
- DefaultBackend() : string
- Backend callback method
- delete() : self
- Delete
- FieldBadge() : string
- Backend badge
- 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
- getTableName() : string
- Get table name
- NullBackend() : string
- Backend callback method
- setTableColums() : self
- Set table columns
- setTableName() : self
- Set table name
- _loadColumns() : self
- Load columns list
Properties
$_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_field'
$_tableColums
Fields
protected
array<string|int, mixed>
$_tableColums
= array('Field' => array('datatype' => 'string', 'type' => 'string', 'max_length' => 255, 'default' => \NULL, 'null' => \FALSE), 'Type' => 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), 'Null' => array('datatype' => 'tinyint unsigned', 'type' => 'int', 'max_length' => \NULL, 'default' => \NULL, 'null' => \FALSE, 'unsigned' => \TRUE, 'min' => 0, 'max' => 255), 'Key' => array('datatype' => 'string', 'type' => 'string', 'max_length' => 255, 'default' => \NULL, 'null' => \FALSE), 'Default' => array('datatype' => 'string', 'type' => 'string', 'max_length' => 255, 'default' => '', 'null' => \FALSE), 'Extra' => array('datatype' => 'string', 'type' => 'string', 'max_length' => 255, 'default' => \NULL, 'null' => \FALSE), 'Privileges' => array('datatype' => 'string', 'type' => 'string', 'max_length' => 255, 'default' => \NULL, 'null' => \FALSE), 'Comment' => array('datatype' => 'text', 'type' => 'string', 'max_length' => 65535, 'default' => '', 'null' => \FALSE))
$_tableName
Table name
protected
mixed
$_tableName
= \NULL
$_values
protected
mixed
$_values
= array()
Methods
__call()
Triggered when invoking inaccessible methods in an object context
public
__call(mixed $methodName, array<string|int, mixed> $arguments) : mixed
Parameters
- $methodName : mixed
- $arguments : array<string|int, mixed>
-
arguments
Tags
__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
boolDefaultBackend()
Backend callback method
public
DefaultBackend() : string
Return values
stringdelete()
Delete
public
delete() : self
Return values
selfFieldBadge()
Backend badge
public
FieldBadge(Admin_Form_Field $oAdmin_Form_Field, Admin_Form_Controller $oAdmin_Form_Controller) : string
Parameters
- $oAdmin_Form_Field : Admin_Form_Field
- $oAdmin_Form_Controller : Admin_Form_Controller
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>getTableName()
Get table name
public
getTableName() : string
Return values
stringNullBackend()
Backend callback method
public
NullBackend() : string
Return values
stringsetTableColums()
Set table columns
public
setTableColums(array<string|int, mixed> $tableColums) : self
Parameters
- $tableColums : array<string|int, mixed>
-
columns
Return values
selfsetTableName()
Set table name
public
setTableName(string $tableName) : self
Parameters
- $tableName : string
Return values
self_loadColumns()
Load columns list
protected
_loadColumns() : self