Source of file FilterInterface.php
Size: 1,392 Bytes - Last Modified: 2014-03-12T23:21:18+01:00
/home/theseer/Downloads/ZendFramework-2.3.0/library/Zend/EventManager/Filter/FilterInterface.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 | <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\EventManager\Filter; use Zend\EventManager\ResponseCollection; use Zend\Stdlib\CallbackHandler; /** * Interface for intercepting filter chains */ interface FilterInterface { /** * Execute the filter chain * * @param string|object $context * @param array $params * @return mixed */ public function run($context, array $params = array()); /** * Attach an intercepting filter * * @param callable $callback * @return CallbackHandler */ public function attach($callback); /** * Detach an intercepting filter * * @param CallbackHandler $filter * @return bool */ public function detach(CallbackHandler $filter); /** * Get all intercepting filters * * @return array */ public function getFilters(); /** * Clear all filters * * @return void */ public function clearFilters(); /** * Get all filter responses * * @return ResponseCollection */ public function getResponses(); } |