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.  * @author     Jordi Boggiano <j.boggiano@seld.be>
  10.  * @copyright  Copyright (c) 2008, Jordi Boggiano
  11.  * @license    http://dwoo.org/LICENSE   Modified BSD License
  12.  * @link       http://dwoo.org/
  13.  * @version    1.0.0
  14.  * @date       2008-10-23
  15.  * @package    Dwoo
  16.  */
  17. abstract class Dwoo_Processor
  18. {
  19.     /**
  20.      * the compiler instance that runs this processor
  21.      *
  22.      * @var Dwoo 
  23.      */
  24.     protected $compiler;
  25.  
  26.     /**
  27.      * constructor, if you override it, call parent::__construct($dwoo); or assign
  28.      * the dwoo instance yourself if you need it
  29.      *
  30.      * @param Dwoo $dwoo the dwoo instance that runs this plugin
  31.      */
  32.     public function __construct(Dwoo_Compiler $compiler)
  33.     {
  34.         $this->compiler = $compiler;
  35.     }
  36.  
  37.     /**
  38.      * processes the input and returns it filtered
  39.      *
  40.      * @param string $input the template to process
  41.      * @return string 
  42.      */
  43.     abstract public function process($input);
  44. }

Documentation generated on Sat, 18 Jul 2009 21:05:17 +0200 by phpDocumentor 1.4.0