Trash_Entity
extends Core_Empty_Entity
in package
Trash.
Tags
Table of Contents
Properties
- $count : int
- Backend property
- $id : int
- Backend property
- $name : int
- Backend property
- $table_name : int
- Backend property
- $_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
- chunkDelete() : int
- Delete object from database by chunk
- delete() : Core_Entity
- Delete object from database
- getDataValues() : array<string|int, mixed>
- Get dataValues
- getModelName() : string
- Get model name, e.g. 'book' for 'Book_Model'
- getPrimaryKeyName() : string
- Get primary key name
- getRelatedSite() : null
- Get Related Site
- getTableColumns() : array<string|int, mixed>
- Get table colums
- setTableColums() : self
- Set table columns
- undelete() : self
- Turn off deleted status
- _loadColumns() : self
- Load columns list
Properties
$count
Backend property
public
int
$count
= \NULL
$id
Backend property
public
int
$id
= \NULL
$name
Backend property
public
int
$name
= \NULL
$table_name
Backend property
public
int
$table_name
= \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
= 'trash'
$_tableColums
Table columns
protected
array<string|int, mixed>
$_tableColums
= array()
Methods
__construct()
Constructor
public
__construct() : mixed
chunkDelete()
Delete object from database by chunk
public
chunkDelete(mixed $offset, int $limit) : int
Parameters
- $offset : mixed
- $limit : int
Return values
intdelete()
Delete object from database
public
delete([mixed $primaryKey = NULL ]) : Core_Entity
Parameters
- $primaryKey : mixed = NULL
-
primary key for deleting object
Return values
Core_EntitygetDataValues()
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
stringgetPrimaryKeyName()
Get primary key name
public
getPrimaryKeyName() : string
Return values
stringgetRelatedSite()
Get Related Site
public
getRelatedSite() : null
Return values
nullgetTableColumns()
Get table colums
public
getTableColumns() : array<string|int, mixed>
Return values
array<string|int, mixed>setTableColums()
Set table columns
public
setTableColums(array<string|int, mixed> $tableColums) : self
Parameters
- $tableColums : array<string|int, mixed>
-
columns
Return values
selfundelete()
Turn off deleted status
public
undelete() : self
Return values
self_loadColumns()
Load columns list
protected
_loadColumns() : self