interface FilterEnabledInterface in Zircon Profile 8
Same name in this branch
- 8 vendor/zendframework/zend-hydrator/src/FilterEnabledInterface.php \Zend\Hydrator\FilterEnabledInterface
- 8 vendor/zendframework/zend-stdlib/src/Hydrator/FilterEnabledInterface.php \Zend\Stdlib\Hydrator\FilterEnabledInterface
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-hydrator/src/FilterEnabledInterface.php \Zend\Hydrator\FilterEnabledInterface
Hierarchy
- interface \Zend\Hydrator\FilterEnabledInterface extends \Filter\FilterProviderInterface
Expanded class hierarchy of FilterEnabledInterface
All classes that implement FilterEnabledInterface
1 file declares its use of FilterEnabledInterface
- FilterEnabledInterface.php in vendor/
zendframework/ zend-stdlib/ src/ Hydrator/ FilterEnabledInterface.php
File
- vendor/
zendframework/ zend-hydrator/ src/ FilterEnabledInterface.php, line 12
Namespace
Zend\HydratorView source
interface FilterEnabledInterface extends Filter\FilterProviderInterface {
/**
* Add a new filter to take care of what needs to be hydrated.
* To exclude e.g. the method getServiceLocator:
*
* <code>
* $composite->addFilter(
* "servicelocator",
* function ($property) {
* list($class, $method) = explode('::', $property);
* if ($method === 'getServiceLocator') {
* return false;
* }
* return true;
* },
* FilterComposite::CONDITION_AND
* );
* </code>
*
* @param string $name Index in the composite
* @param callable|Filter\FilterInterface $filter
* @param int $condition
* @return Filter\FilterComposite
*/
public function addFilter($name, $filter, $condition = Filter\FilterComposite::CONDITION_OR);
/**
* Check whether a specific filter exists at key $name or not
*
* @param string $name Index in the composite
* @return bool
*/
public function hasFilter($name);
/**
* Remove a filter from the composition.
* To not extract "has" methods, you simply need to unregister it
*
* <code>
* $filterComposite->removeFilter('has');
* </code>
*
* @param $name
* @return Filter\FilterComposite
*/
public function removeFilter($name);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FilterEnabledInterface:: |
public | function | Add a new filter to take care of what needs to be hydrated. To exclude e.g. the method getServiceLocator: | 1 |
FilterEnabledInterface:: |
public | function | Check whether a specific filter exists at key $name or not | 1 |
FilterEnabledInterface:: |
public | function | Remove a filter from the composition. To not extract "has" methods, you simply need to unregister it | 1 |