Source for file topLevelBlock.php

Documentation is available at topLevelBlock.php

  1. <?php
  2.  
  3. /**
  4.  * Internal plugin used to wrap the template output, do not use in your templates as it will break them
  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. {
  18.     public function init()
  19.     {
  20.     }
  21.  
  22.     public static function preProcessing(Dwoo_Compiler $compilerarray $params$prepend$append$type)
  23.     {
  24.         return 'ob_start(); /* template body */ '.Dwoo_Compiler::PHP_CLOSE;
  25.     }
  26.  
  27.     public static function postProcessing(Dwoo_Compiler $compilerarray $params$prepend$append$content)
  28.     {
  29.         return $content Dwoo_Compiler::PHP_OPEN.' /* end template body */'."\n".'return $this->buffer . ob_get_clean();';
  30.     }
  31. }

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