Documentation

Revision_Entity extends Core_Empty_Entity
in package

Revision.

Tags
subpackage

Revision

version
7.x
author

Hostmake LLC

copyright

© 2005-2024 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

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
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
_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 = 'revision'

$_tableColums

Table columns

protected array<string|int, mixed> $_tableColums = array()

Methods

__construct()

Constructor

public __construct() : mixed

delete()

Delete object from database

public delete([mixed $primaryKey = NULL ]) : Core_Entity
Parameters
$primaryKey : mixed = NULL

primary key for deleting object

Return values
Core_Entity

getDataValues()

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
string

getPrimaryKeyName()

Get primary key name

public getPrimaryKeyName() : string
Return values
string

getRelatedSite()

Get Related Site

public getRelatedSite() : null
Return values
null

getTableColumns()

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
self

_loadColumns()

Load columns list

protected _loadColumns() : self
Return values
self

        
On this page

Search results