Documentation

Dms_Field_Controller_Value_Type0 extends Dms_Field_Controller_Value_Type
in package

Dms_Field. Целое число

Tags
subpackage

Dms

version
7.x
author

Hostmake LLC

copyright

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

Table of Contents

$_field  : Dms_Field_Model
Field
$_modelName  : string
Model name
$_tableName  : string
Table name
createNewValue()  : Field_Value
Create new value for field
getFieldValueObject()  : object
Get Field_Value as object
getModelName()  : string
Get model name
getTableName()  : string
Get table name
getValue()  : array<string|int, mixed>
Get all values for entity
getValueById()  : mixed
Get Field_Value by ID
getValues()  : array<string|int, mixed>
Get all values for entity
getValuesByValue()  : array<string|int, mixed>
Get Field_Value by value
setField()  : self
Set field

Properties

$_modelName

Model name

protected string $_modelName = 'Dms_Field_Value_Int'

$_tableName

Table name

protected string $_tableName = 'dms_field_value_ints'

Methods

createNewValue()

Create new value for field

public createNewValue(int $entityId) : Field_Value
Parameters
$entityId : int

entity ID

Return values
Field_Value

getFieldValueObject()

Get Field_Value as object

public getFieldValueObject() : object
Return values
object

getModelName()

Get model name

public getModelName() : string
Return values
string

getTableName()

Get table name

public getTableName() : string
Return values
string

getValue()

Get all values for entity

public getValue(int $entityId[, bool $bCache = TRUE ]) : array<string|int, mixed>
Parameters
$entityId : int

entity ID

$bCache : bool = TRUE

cache mode

Return values
array<string|int, mixed>

getValueById()

Get Field_Value by ID

public getValueById(string $valueId) : mixed
Parameters
$valueId : string

value ID

Return values
mixed

getValues()

Get all values for entity

public getValues(int $entityId[, bool $bCache = TRUE ]) : array<string|int, mixed>
Parameters
$entityId : int

entity ID

$bCache : bool = TRUE

cache mode

Return values
array<string|int, mixed>

getValuesByValue()

Get Field_Value by value

public getValuesByValue(string $value[, string $condition = '=' ][, bool $bCache = TRUE ]) : array<string|int, mixed>
Parameters
$value : string

value

$condition : string = '='

condition

$bCache : bool = TRUE

use cache

Return values
array<string|int, mixed>

Search results