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

Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

convertBlockToHash() protected méthode

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

convertFromValue() public méthode

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

convertItemFromHash() protected méthode

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

convertItemToHash() protected méthode

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

convertToValue() public méthode

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

convertZoneFromHash() protected méthode

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

convertZoneToHash() protected méthode

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