PHP Class eZ\Publish\Core\FieldType\Page\HashConverter

Datei anzeigen Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
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.

Method Details

convertBlockFromHash() protected method

Converts the given $hash to a Block node.
protected convertBlockFromHash ( mixed $hash ) : Block
$hash mixed
return eZ\Publish\Core\FieldType\Page\Parts\Block

convertBlockToHash() protected method

Converts the given $block into a plain hash format.
protected convertBlockToHash ( Block $block ) : array
$block eZ\Publish\Core\FieldType\Page\Parts\Block
return array

convertFromValue() public method

Converts the given $value into a plain hash format.
public convertFromValue ( Value $value ) : array
$value Value
return array

convertItemFromHash() protected method

Converts the given $hash to a Item node.
protected convertItemFromHash ( mixed $hash ) : Item
$hash mixed
return eZ\Publish\Core\FieldType\Page\Parts\Item

convertItemToHash() protected method

Converts the given $item into a plain hash format.
protected convertItemToHash ( Item $item ) : array
$item eZ\Publish\Core\FieldType\Page\Parts\Item
return array

convertToValue() public method

Converts the given $hash to a Value defined by the field type.
public convertToValue ( mixed $hash ) : Value
$hash mixed
return Value

convertZoneFromHash() protected method

Converts the given $hash to a Zone node.
protected convertZoneFromHash ( mixed $hash ) : Zone
$hash mixed
return eZ\Publish\Core\FieldType\Page\Parts\Zone

convertZoneToHash() protected method

Converts the given $zone into a plain hash format.
protected convertZoneToHash ( Zone $zone ) : array
$zone eZ\Publish\Core\FieldType\Page\Parts\Zone
return array