Documentation

Field_Controller_Value_Type6 extends Field_Controller_Value_Type4
in package

Fields. Визуальный редактор

Tags
subpackage

Field

version
7.x
author

Hostmake LLC

copyright

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

Table of Contents

$_field  : Field_Model
Field
$_modelName  : mixed
Model name
$_tableName  : string
Table name
__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

$_modelName

Model name

protected mixed $_modelName = 'Field_Value_Text'

$_tableName

Table name

protected string $_tableName = 'field_value_texts'

Methods

__toString()

Convert object to string

public __toString() : string
Return values
string

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

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