Documentation

Property_Controller_Value_Type
in package

AbstractYes

Properties.

Tags
subpackage

Property

version
7.x
author

Hostmake LLC

copyright

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

Table of Contents

Properties

$_property  : Property_Model
Property

Methods

__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

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

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>

        
On this page

Search results