Property_Controller_Value_Type2
extends Property_Controller_Value_Type
in package
Properties. Файл
Tags
Table of Contents
Properties
- $_modelName : mixed
- Model name
- $_property : Property_Model
- Property
- $_tableName : string
- Table name
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
$_modelName
Model name
protected
mixed
$_modelName
= 'Property_Value_File'
$_property
Property
protected
Property_Model
$_property
= \NULL
$_tableName
Table name
protected
string
$_tableName
= 'property_value_files'
Methods
__toString()
Convert object to string
public
__toString() : string
Return values
stringcreateNewValue()
Create new value for property
public
createNewValue(int $entityId) : Property_Value
Parameters
- $entityId : int
-
entity ID
Return values
Property_ValuegetModelName()
Get model name
public
getModelName() : string
Return values
stringgetPropertyValueObject()
Get Property_Value as object
public
getPropertyValueObject() : object
Return values
objectgetTableName()
Get table name
public
getTableName() : string
Return values
stringgetValueById()
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>setProperty()
Set property
public
setProperty(Property_Model $oProperty) : self
Parameters
- $oProperty : Property_Model
-
property