Dms_Field_Controller_Value_Type4
extends Dms_Field_Controller_Value_Type2
in package
Dms_Field. Дата с номером
Tags
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
$_field
Field
protected
Dms_Field_Model
$_field
= \NULL
$_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_ValuegetFieldValueObject()
Get Field_Value as object
public
getFieldValueObject() : object
Return values
objectgetModelName()
Get model name
public
getModelName() : string
Return values
stringgetTableName()
Get table name
public
getTableName() : string
Return values
stringgetValue()
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>setField()
Set field
public
setField(Dms_Field_Model $oField) : self
Parameters
- $oField : Dms_Field_Model
-
field