lithium\aop\Filters::hasApplied()
Checks to see if the given class/method has any filters applied.
Parameters
-
string|object
$class
Fully namespaced class name or an instance of a class.
-
string
$method
The method name i.e.
'bar'
.
Returns
booleanSource
public static function hasApplied($class, $method) {
foreach (static::_ids($class, $method) as $id) {
if (isset(static::$_filters[$id])) {
return true;
}
}
return false;
}