[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/zendframework/zend-stdlib/src/Hydrator/ -> FilterEnabledInterface.php (summary)

Zend Framework (http://framework.zend.com/)

Copyright: Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
File Size: 63 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

FilterEnabledInterface:: (3 methods):
  addFilter()
  hasFilter()
  removeFilter()


Interface: FilterEnabledInterface  - X-Ref

addFilter($name, $filter, $condition = FilterComposite::CONDITION_OR)   X-Ref
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|FilterInterface $filter
param: int $condition
return: FilterComposite

hasFilter($name)   X-Ref
Check whether a specific filter exists at key $name or not

param: string $name Index in the composite
return: bool

removeFilter($name)   X-Ref
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: FilterComposite



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1