lithium\aop\Filters::hasApplied()

public static method

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

boolean

Source

	public static function hasApplied($class, $method) {
		foreach (static::_ids($class, $method) as $id) {
			if (isset(static::$_filters[$id])) {
				return true;
			}
		}
		return false;
	}