Documentation

Dms_Field_Controller_Value_Type4 extends Dms_Field_Controller_Value_Type2
in package

Dms_Field. Дата с номером

Tags
subpackage

Dms

version
7.x
copyright

© 2005-2024, https://www.hostcms.ru

Table of Contents

Properties

$_field  : Dms_Field_Model
Field
$_modelName  : mixed
Model name
$_tableName  : string
Table name

Methods

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 mixed $_modelName = 'Dms_Field_Value_Datetime'

$_tableName

Table name

protected string $_tableName = 'dms_field_value_datetimes'

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

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>

        
On this page

Search results