PHP Класс eZ\Publish\Core\FieldType\Page\HashConverter

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
convertFromValue ( Value $value ) : array Converts the given $value into a plain hash format.
convertToValue ( mixed $hash ) : Value Converts the given $hash to a Value defined by the field type.

Защищенные методы

Метод Описание
convertBlockFromHash ( mixed $hash ) : Block Converts the given $hash to a Block node.
convertBlockToHash ( Block $block ) : array Converts the given $block into a plain hash format.
convertItemFromHash ( mixed $hash ) : Item Converts the given $hash to a Item node.
convertItemToHash ( Item $item ) : array Converts the given $item into a plain hash format.
convertZoneFromHash ( mixed $hash ) : Zone Converts the given $hash to a Zone node.
convertZoneToHash ( Zone $zone ) : array Converts the given $zone into a plain hash format.

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

convertBlockFromHash() защищенный метод

Converts the given $hash to a Block node.
protected convertBlockFromHash ( mixed $hash ) : Block
$hash mixed
Результат eZ\Publish\Core\FieldType\Page\Parts\Block

convertBlockToHash() защищенный метод

Converts the given $block into a plain hash format.
protected convertBlockToHash ( Block $block ) : array
$block eZ\Publish\Core\FieldType\Page\Parts\Block
Результат array

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

Converts the given $value into a plain hash format.
public convertFromValue ( Value $value ) : array
$value Value
Результат array

convertItemFromHash() защищенный метод

Converts the given $hash to a Item node.
protected convertItemFromHash ( mixed $hash ) : Item
$hash mixed
Результат eZ\Publish\Core\FieldType\Page\Parts\Item

convertItemToHash() защищенный метод

Converts the given $item into a plain hash format.
protected convertItemToHash ( Item $item ) : array
$item eZ\Publish\Core\FieldType\Page\Parts\Item
Результат array

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

Converts the given $hash to a Value defined by the field type.
public convertToValue ( mixed $hash ) : Value
$hash mixed
Результат Value

convertZoneFromHash() защищенный метод

Converts the given $hash to a Zone node.
protected convertZoneFromHash ( mixed $hash ) : Zone
$hash mixed
Результат eZ\Publish\Core\FieldType\Page\Parts\Zone

convertZoneToHash() защищенный метод

Converts the given $zone into a plain hash format.
protected convertZoneToHash ( Zone $zone ) : array
$zone eZ\Publish\Core\FieldType\Page\Parts\Zone
Результат array