Source for file Processor.php

Documentation is available at Processor.php

  1. <?php
  2.  
  3. /**
  4.  * base class for processors
  5.  *
  6.  * This software is provided 'as-is', without any express or implied warranty.
  7.  * In no event will the authors be held liable for any damages arising from the use of this software.
  8.  *
  9.  * This file is released under the LGPL
  10.  * "GNU Lesser General Public License"
  11.  * More information can be found here:
  12.  * {@link http://www.gnu.org/copyleft/lesser.html}
  13.  *
  14.  * @author     Jordi Boggiano <[email protected]>
  15.  * @copyright  Copyright (c) 2008, Jordi Boggiano
  16.  * @license    http://www.gnu.org/copyleft/lesser.html  GNU Lesser General Public License
  17.  * @link       http://dwoo.org/
  18.  * @version    0.9.1
  19.  * @date       2008-05-30
  20.  * @package    Dwoo
  21.  */
  22. abstract class Dwoo_Processor
  23. {
  24.     /**
  25.      * the compiler instance that runs this processor
  26.      *
  27.      * @var Dwoo 
  28.      */
  29.     protected $compiler;
  30.  
  31.     /**
  32.      * constructor, if you override it, call parent::__construct($dwoo); or assign
  33.      * the dwoo instance yourself if you need it
  34.      *
  35.      * @param Dwoo $dwoo the dwoo instance that runs this plugin
  36.      */
  37.     public function __construct(Dwoo_Compiler $compiler)
  38.     {
  39.         $this->compiler = $compiler;
  40.     }
  41.  
  42.     /**
  43.      * processes the input and returns it filtered
  44.      *
  45.      * @param string $input the template to process
  46.      * @return string 
  47.      */
  48.     abstract public function process($input);
  49. }

Documentation generated on Sun, 03 Aug 2008 15:12:44 +0200 by phpDocumentor 1.4.0