Filter
[ class tree: Filter ] [ index: Filter ] [ all elements ]

Source for file FilterChain.php

Documentation is available at FilterChain.php

  1. <?php
  2. /**
  3.  * MVClasses
  4.  *
  5.  * LICENSE
  6.  *
  7.  * "THE BEER-WARE LICENSE" (Revision 42):
  8.  * "Sven Strittmatter" <ausserirdisch@sven-space.de> wrote this file.
  9.  * As long as you retain this notice you can do whatever you want with
  10.  * this stuff. If we meet some day, and you think this stuff is worth it,
  11.  * you can buy me a beer in return.
  12.  *
  13.  * @category    MVClasses
  14.  * @package     Filter
  15.  * @copyright   Copyright (c) 2007 Sven Strittmatter
  16.  */
  17.  
  18. /**
  19.  * Enter description here...
  20.  * 
  21.  * Longdesc
  22.  * 
  23.  * @category    MVClasses
  24.  * @package     Filter
  25.  * @copyright     Copyright (c) 2007 Sven Strittmatter
  26.  * @author    "Sven Strittmatter" <ausserirdisch@sven-space.de>
  27.  * @version     1.0
  28.  * @link        http://www.sven-space.de/code/php/MVClasses
  29.  */
  30. class FilterChain {
  31.     private $_filters array();
  32.     
  33.     public function addFilter(Filter $f{
  34.         $this->_filters[$f;
  35.     }
  36.     
  37.     public function processFilters(Request $reqResponse $res{
  38.         foreach ($this->_filters as $filter{
  39.             $filter->execute($req$res);
  40.         }
  41.     }
  42. }

Documentation generated on Sun, 02 Aug 2009 17:14:56 +0200 by phpDocumentor 1.4.2