PHP Класс Pimcore\Model\Object\Data\KeyValue

Наследование: extends Pimcore\Model\AbstractModel
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$arr array
$class Pimcore\Model\Object\ClassDefinition
$objectId integer

Защищенные свойства (Protected)

Свойство Тип Описание
$multivalent Whether multivalent values are allowed.

Открытые методы

Метод Описание
__call ( $name, $arguments ) : array | mixed | null | void
__construct ( )
__toString ( ) : string
deleteEntryByKeyId ( $keyId ) deletes an entry with the given keyId if the entry exists
getClass ( ) : ClassDefinition
getEntryByKeyId ( $keyId ) : array | null
getInternalProperties ( ) : array
getKeyId ( $propName, null $groupId = null ) : integer
getKeyvaluepairsByGroup ( $groupName ) : array
getMultivalent ( )
getObjectId ( ) : integer
getProperties ( boolean $forEditMode = false ) : array
getProperty ( $propName, null $groupId = null ) : array | null
setClass ( ClassDefinition $class )
setMultivalent ( $multivalent )
setObjectId ( $objectId )
setProperties ( $arr )
setProperty ( $propName, $value )
setPropertyWithId ( $keyId, $value, boolean $fromGrid = false ) : KeyValue Sets the value of the property with the given id
setValueWithKeyId ( $keyId, $value )

Приватные методы

Метод Описание
getTranslatedValue ( $keyId, $value ) : string

Описание методов

__call() публичный метод

public __call ( $name, $arguments ) : array | mixed | null | void
$name
$arguments
Результат array | mixed | null | void

__construct() публичный метод

public __construct ( )

__toString() публичный метод

public __toString ( ) : string
Результат string

deleteEntryByKeyId() публичный метод

deletes an entry with the given keyId if the entry exists
public deleteEntryByKeyId ( $keyId )
$keyId

getClass() публичный метод

public getClass ( ) : ClassDefinition
Результат Pimcore\Model\Object\ClassDefinition

getEntryByKeyId() публичный метод

public getEntryByKeyId ( $keyId ) : array | null
$keyId
Результат array | null

getInternalProperties() публичный метод

public getInternalProperties ( ) : array
Результат array

getKeyId() публичный метод

public getKeyId ( $propName, null $groupId = null ) : integer
$propName
$groupId null
Результат integer

getKeyvaluepairsByGroup() публичный метод

public getKeyvaluepairsByGroup ( $groupName ) : array
$groupName
Результат array

getMultivalent() публичный метод

public getMultivalent ( )

getObjectId() публичный метод

public getObjectId ( ) : integer
Результат integer

getProperties() публичный метод

public getProperties ( boolean $forEditMode = false ) : array
$forEditMode boolean
Результат array

getProperty() публичный метод

public getProperty ( $propName, null $groupId = null ) : array | null
$propName
$groupId null
Результат array | null

setClass() публичный метод

public setClass ( ClassDefinition $class )
$class Pimcore\Model\Object\ClassDefinition

setMultivalent() публичный метод

public setMultivalent ( $multivalent )
$multivalent

setObjectId() публичный метод

public setObjectId ( $objectId )
$objectId

setProperties() публичный метод

public setProperties ( $arr )
$arr

setProperty() публичный метод

public setProperty ( $propName, $value )
$propName
$value

setPropertyWithId() публичный метод

Sets the value of the property with the given id
public setPropertyWithId ( $keyId, $value, boolean $fromGrid = false ) : KeyValue
$keyId the id of the key
$value the value
$fromGrid boolean if true then the data is coming from the grid, we have to check if the value needs to be translated
Результат KeyValue the resulting object

setValueWithKeyId() публичный метод

public setValueWithKeyId ( $keyId, $value )
$keyId
$value

Описание свойств

$arr публичное свойство

public array $arr
Результат array

$class публичное свойство

public ClassDefinition,Pimcore\Model\Object $class
Результат Pimcore\Model\Object\ClassDefinition

$multivalent защищенное свойство

Whether multivalent values are allowed.
protected $multivalent

$objectId публичное свойство

public int $objectId
Результат integer