[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/wact/src/compiler/compile_tree_node/ -> WactPHPNode.class.php (source)

   1  <?php
   2  /*
   3   * Limb PHP Framework
   4   *
   5   * @link http://limb-project.com 
   6   * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
   7   * @license    LGPL http://www.gnu.org/copyleft/lesser.html 
   8   */
   9  
  10  /**

  11   * class WactPHPNode.

  12   *

  13   * @package wact

  14   * @version $Id: WactPHPNode.class.php 5945 2007-06-06 08:31:43Z pachanga $

  15   */
  16  class WactPHPNode extends WactCompileTreeNode
  17  {
  18    protected $contents;
  19  
  20    function __construct($location, $text)
  21    {
  22      parent :: __construct($location);
  23  
  24      $this->contents = $text;
  25    }
  26  
  27    function generate($code_writer)
  28    {
  29      $code_writer->writePHP($this->contents);
  30    }
  31  
  32    function getCode()
  33    {
  34      return $this->contents;
  35    }
  36  }
  37  ?>


Generated: Fri Aug 29 04:49:26 2008 Cross-referenced by PHPXref 0.7