Documentation

Cache_Item_Entity extends Core_Empty_Entity
in package

Cache.

Tags
subpackage

Cache

version
7.x
author

Hostmake LLC

copyright

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

Table of Contents

Properties

$active  : int
Backend property
$cacheType  : string
Backend property
$expire  : string
Backend property
$id  : int
Backend property
$name  : string
Backend property
$size  : string
Backend property
$tags  : string
Backend property
$user_id  : string
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.
clear()  : Core_Cache
Delete cache for current entity
clearAll()  : mixed
Delete all cache
expire()  : string
Get expire time
filled()  : int
Get a count of keys in cache
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
size()  : string
Get size
_loadColumns()  : self
Load columns list

Properties

$active

Backend property

public int $active = \NULL

$cacheType

Backend property

public string $cacheType = \NULL

$expire

Backend property

public string $expire = \NULL

$id

Backend property

public int $id = \NULL

$name

Backend property

public string $name = \NULL

$size

Backend property

public string $size = \NULL

$tags

Backend property

public string $tags = \NULL

$user_id

Backend property

public string $user_id = 0

$_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 = 'cache'

$_tableColums

Table columns

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

Methods

__construct()

Constructor.

public __construct(string $cacheType) : mixed
Parameters
$cacheType : string

type of cache

clearAll()

Delete all cache

public clearAll() : mixed

expire()

Get expire time

public expire() : string
Return values
string

filled()

Get a count of keys in cache

public filled() : int
Return values
int

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

size()

Get size

public size() : string
Return values
string

_loadColumns()

Load columns list

protected _loadColumns() : self
Return values
self

        
On this page

Search results