lithium\util\collection\Filters::next()

public method
Not used here anymore.

Provides short-hand convenience syntax for filter chaining.

Parameters

  • object $self

    The object instance that owns the filtered method.

  • array $params

    An associative array containing the parameters passed to the filtered method.

  • array $chain

    The Filters object instance containing this chain of filters.

Returns

mixed

Returns the return value of the next filter in the chain.

Source

	public function next(/* $self, $params, $chain */) {
		if (func_num_args() !== 3) {
			trigger_error('Missing argument/s.', E_USER_WARNING);
			return;
		}
		list($self, $params, $chain) = func_get_args();

		$message  = '`\lithium\util\collection\Filters::next()` has been deprecated ';
		$message .= 'in favor of `\lithium\aop\Chain::next()`';
		trigger_error($message, E_USER_DEPRECATED);

		if (empty($self) || empty($chain)) {
			return parent::next();
		}
		$next = parent::next();
		return $next($self, $params, $chain);
	}