__construct()
addFilter()
addStrategy()
extract()
extractName()
extractValue()
getFilter()
getNamingStrategy()
getStrategy()
hasFilter()
hasNamingStrategy()
hasStrategy()
hydrate()
hydrateName()
hydrateValue()
removeFilter()
removeNamingStrategy()
removeStrategy()
setNamingStrategy()
getReflProperties()
$filterComposite
$namingStrategy
$reflProperties
$strategies
__construct()
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::__construct() |
---|
addFilter(string $name, \Zend\Stdlib\Hydrator\callable | \Zend\Stdlib\Hydrator\Filter\FilterInterface $filter, int $condition) : \Zend\Stdlib\Hydrator\Filter\FilterComposite
To exclude e.g. the method getServiceLocator:
$composite->addFilter("servicelocator",
function ($property) {
list($class, $method) = explode('::', $property);
if ($method === 'getServiceLocator') {
return false;
}
return true;
}, FilterComposite::CONDITION_AND
);
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::addFilter() |
---|
string
Index in the composite
\Zend\Stdlib\Hydrator\callable\Zend\Stdlib\Hydrator\Filter\FilterInterface
int
addStrategy(string $name, \Zend\Stdlib\Hydrator\Strategy\StrategyInterface $strategy) : \Zend\Stdlib\Hydrator\HydratorInterface
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::addStrategy() |
---|
string
The name of the strategy to register.
extract(object $object) : array
object
array
extractName(string $name, null $object) : mixed
If no naming strategy exists, the plain value is returned.
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::extractName() |
---|
string
The name to convert.
null
The object is optionally provided as context.
mixed
extractValue(string $name, mixed $value, mixed $object) : mixed
If no strategy exists the plain value is returned.
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::extractValue() |
---|
string
The name of the strategy to use.
mixed
The value that should be converted.
mixed
The object is optionally provided as context.
mixed
getFilter() : \Zend\Stdlib\Hydrator\Filter\FilterComposite
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::getFilter() |
---|
getNamingStrategy() : \Zend\Stdlib\Hydrator\NamingStrategy\NamingStrategyInterface
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::getNamingStrategy() |
---|
getStrategy(string $name) : \Zend\Stdlib\Hydrator\Strategy\StrategyInterface
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::getStrategy() |
---|
string
The name of the strategy to get.
\Zend\Stdlib\Exception\InvalidArgumentException |
---|
hasFilter(string $name) : bool
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::hasFilter() |
---|
string
Index in the composite
bool
hasNamingStrategy() : bool
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::hasNamingStrategy() |
---|
bool
hasStrategy(string $name) : bool
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::hasStrategy() |
---|
string
The name of the strategy to check for.
bool
hydrate(array $data, object $object) : object
array
object
object
hydrateName(string $name, array $data) : mixed
If no naming strategy exists, the plain value is returned.
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::hydrateName() |
---|
string
The name to convert.
array
The whole data is optionally provided as context.
mixed
hydrateValue(string $name, mixed $value, array $data) : mixed
If no strategy exists the plain value is returned.
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::hydrateValue() |
---|
string
The name of the strategy to use.
mixed
The value that should be converted.
array
The whole data is optionally provided as context.
mixed
removeFilter($name) : \Zend\Stdlib\Hydrator\Filter\FilterComposite
To not extract "has" methods, you simply need to unregister it
$filterComposite->removeFilter('has');
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::removeFilter() |
---|
removeNamingStrategy() : \Zend\Stdlib\Hydrator\self
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::removeNamingStrategy() |
---|
\Zend\Stdlib\Hydrator\self
removeStrategy(string $name) : \Zend\Stdlib\Hydrator\HydratorInterface
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::removeStrategy() |
---|
string
The name of the strategy to remove.
setNamingStrategy(\Zend\Stdlib\Hydrator\NamingStrategy\NamingStrategyInterface $strategy) : \Zend\Stdlib\Hydrator\self
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::setNamingStrategy() |
---|
\Zend\Stdlib\Hydrator\self
getReflProperties(string | object $input) : \ReflectionProperty[]
$filterComposite : \Zend\Stdlib\Hydrator\Filter\FilterComposite
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::$$filterComposite |
---|
$namingStrategy : \Zend\Stdlib\Hydrator\NamingStrategy\NamingStrategyInterface
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::$$namingStrategy |
---|
$strategies : \ArrayObject
inherited_from | \Zend\Stdlib\Hydrator\AbstractHydrator::$$strategies |
---|