Field_Controller_Value_Type3
extends Field_Controller_Value_Type0
in package
Fields. Список
Tags
Table of Contents
Properties
- $_field : Field_Model
- Field
- $_modelName : string
- Model name
- $_tableName : string
- Table name
Methods
- __toString() : string
- Convert object to string
- 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
- 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
Field_Model
$_field
= \NULL
$_modelName
Model name
protected
string
$_modelName
= 'Field_Value_Int'
$_tableName
Table name
protected
string
$_tableName
= 'field_value_ints'
Methods
__toString()
Convert object to string
public
__toString() : string
Return values
stringcreateNewValue()
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
stringgetValueById()
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(Field_Model $oField) : self
Parameters
- $oField : Field_Model
-
field