Documentation

Property_Controller_Value_Type0 extends Property_Controller_Value_Type
in package

Properties. Число

Tags
subpackage

Property

version
7.x
author

Hostmake LLC

copyright

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

Table of Contents

$_modelName  : string
Model name
$_property  : Property_Model
Property
$_tableName  : string
Table name
__toString()  : string
Convert object to string
createNewValue()  : Property_Value
Create new value for property
getModelName()  : string
Get model name
getPropertyValueObject()  : object
Get Property_Value as object
getTableName()  : string
Get table name
getValueById()  : mixed
Get Property_Value by ID
getValues()  : array<string|int, mixed>
Get all values for entity
getValuesByValue()  : array<string|int, mixed>
Get Property_Value by value
setProperty()  : self
Set property

Properties

$_modelName

Model name

protected string $_modelName = 'Property_Value_Int'

$_tableName

Table name

protected string $_tableName = 'property_value_ints'

Methods

__toString()

Convert object to string

public __toString() : string
Return values
string

createNewValue()

Create new value for property

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

entity ID

Return values
Property_Value

getModelName()

Get model name

public getModelName() : string
Return values
string

getPropertyValueObject()

Get Property_Value as object

public getPropertyValueObject() : object
Return values
object

getTableName()

Get table name

public getTableName() : string
Return values
string

getValueById()

Get Property_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 ][, mixed $bSorting = FALSE ]) : array<string|int, mixed>
Parameters
$entityId : int

entity ID

$bCache : bool = TRUE

cache mode

$bSorting : mixed = FALSE
Return values
array<string|int, mixed>

getValuesByValue()

Get Property_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