eZPublishCommunityProject  2013.5
eZ\Publish\Core\FieldType\Page\HashConverter Class Reference

Class HashConverter converts between a Page field type Value object and a representation of the same in a plain hash format. More...

Public Member Functions

 convertFromValue (Value $value)
 Converts the given $value into a plain hash format. More...
 
 convertToValue ($hash)
 Converts the given $hash to a Value defined by the field type. More...
 

Protected Member Functions

 convertBlockFromHash ($hash)
 Converts the given $hash to a Block node. More...
 
 convertBlockToHash (Block $block)
 Converts the given $block into a plain hash format. More...
 
 convertItemFromHash ($hash)
 Converts the given $hash to a Item node. More...
 
 convertZoneFromHash ($hash)
 Converts the given $hash to a Zone node. More...
 
 convertZoneToHash (Zone $zone)
 Converts the given $zone into a plain hash format. More...
 

Detailed Description

Class HashConverter converts between a Page field type Value object and a representation of the same in a plain hash format.

Member Function Documentation

eZ\Publish\Core\FieldType\Page\HashConverter::convertBlockFromHash (   $hash)
protected

Converts the given $hash to a Block node.

Parameters
mixed$hash
Returns

Referenced by eZ\Publish\Core\FieldType\Page\HashConverter\convertZoneFromHash().

eZ\Publish\Core\FieldType\Page\HashConverter::convertBlockToHash ( Block  $block)
protected

Converts the given $block into a plain hash format.

Parameters
\eZ\Publish\Core\FieldType\Page\Parts\Block$block
Returns
array

Referenced by eZ\Publish\Core\FieldType\Page\HashConverter\convertZoneToHash().

eZ\Publish\Core\FieldType\Page\HashConverter::convertFromValue ( Value  $value)

Converts the given $value into a plain hash format.

Parameters
\eZ\Publish\Core\FieldType\Page\Value$value
Returns
array
eZ\Publish\Core\FieldType\Page\HashConverter::convertItemFromHash (   $hash)
protected

Converts the given $hash to a Item node.

Parameters
mixed$hash
Returns

Referenced by eZ\Publish\Core\FieldType\Page\HashConverter\convertBlockFromHash().

eZ\Publish\Core\FieldType\Page\HashConverter::convertToValue (   $hash)

Converts the given $hash to a Value defined by the field type.

Parameters
mixed$hash
Returns
eZ\Publish\Core\FieldType\Page\HashConverter::convertZoneFromHash (   $hash)
protected

Converts the given $hash to a Zone node.

Parameters
mixed$hash
Returns

Referenced by eZ\Publish\Core\FieldType\Page\HashConverter\convertToValue().

eZ\Publish\Core\FieldType\Page\HashConverter::convertZoneToHash ( Zone  $zone)
protected

Converts the given $zone into a plain hash format.

Parameters
\eZ\Publish\Core\FieldType\Page\Parts\Zone$zone
Returns
array

Referenced by eZ\Publish\Core\FieldType\Page\HashConverter\convertFromValue().


The documentation for this class was generated from the following file: