Zend Framework  3.0
Public Member Functions | List of all members
ObjectProperty Class Reference

Public Member Functions

 extract ($object)
 Extract values from an object.
Parameters
object$object
Returns
array

 
 hydrate (array $data, $object)
 Hydrate $object with the provided $data.
Parameters
array$data
object$object
Returns
object

 
- Public Member Functions inherited from AbstractHydrator
 __construct ()
 Initializes a new instance of this class.
 
 getStrategy ($name)
 Gets the strategy with the given name.
 
 hasStrategy ($name)
 Checks if the strategy with the given name exists.
 
 addStrategy ($name, Strategy\StrategyInterface $strategy)
 Adds the given strategy under the given name.
 
 removeStrategy ($name)
 Removes the strategy with the given name.
 
 extractValue ($name, $value, $object=null)
 Converts a value for extraction.
 
 hydrateValue ($name, $value, $data=null)
 Converts a value for hydration.
 
 extractName ($name, $object=null)
 Convert a name for extraction.
 
 hydrateName ($name, $data=null)
 Converts a value for hydration.
 
 getFilter ()
 Get the filter instance.
 
 addFilter ($name, $filter, $condition=Filter\FilterComposite::CONDITION_OR)
 Add a new filter to take care of what needs to be hydrated.
 
 hasFilter ($name)
 Check whether a specific filter exists at key $name or not.
 
 removeFilter ($name)
 Remove a filter from the composition.
 
 setNamingStrategy (NamingStrategy\NamingStrategyInterface $strategy)
 Adds the given naming strategy.
 
 getNamingStrategy ()
 Gets the naming strategy.
 
 hasNamingStrategy ()
 Checks if a naming strategy exists.
 
 removeNamingStrategy ()
 Removes the naming strategy.
 

Additional Inherited Members

- Protected Attributes inherited from AbstractHydrator
 $strategies
 
 $namingStrategy
 
 $filterComposite
 

Member Function Documentation

extract (   $object)

Extract values from an object.

Parameters
object$object
Returns
array

Extracts the accessible non-static properties of the given $object.

Exceptions
Exception\BadMethodCallExceptionfor a non-object $object

Implements ExtractionInterface.

hydrate ( array  $data,
  $object 
)

Hydrate $object with the provided $data.

Parameters
array$data
object$object
Returns
object

Hydrate an object by populating public properties

Hydrates an object by setting public properties of the object.

Exceptions
Exception\BadMethodCallExceptionfor a non-object $object

Implements HydrationInterface.