| [ Index ] |
PHP Cross Reference of Web Application Component Toolkit |
[Summary view] [Print] [Text view]
1 <?php 2 //-------------------------------------------------------------------------------- 3 // Copyright 2003 Procata, Inc. 4 // Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html) 5 //-------------------------------------------------------------------------------- 6 /** 7 * @package WACT_TEMPLATE 8 * @version $Id: phpnode.inc.php,v 1.3 2004/11/12 21:25:06 jeffmoore Exp $ 9 */ 10 //-------------------------------------------------------------------------------- 11 /** 12 * Make sure CompilerDirectiveTag is included 13 */ 14 require_once WACT_ROOT . 'template/compiler/compilerdirective.inc.php'; 15 /** 16 * Used to write literal PHP. Current sole purpose is for handling XML processing 17 * instructions in a template. 18 * @see http://wact.sourceforge.net/index.php/PHPNode 19 * @access public 20 * @package WACT_TEMPLATE 21 */ 22 class PHPNode extends CompilerDirectiveTag { 23 /** 24 * A PHP string to write 25 * @var string 26 * @access private 27 */ 28 var $contents; 29 30 /** 31 * Constructs PHPNode 32 * @param string contents of the PHP node 33 * @access protected 34 */ 35 function PHPNode($text) { 36 $this->contents = $text; 37 } 38 39 /** 40 * Writes the contents of the PHP node to the compiled template 41 * using the writePHP method 42 * @param CodeWriter 43 * @return void 44 * @access protected 45 */ 46 function generate(&$code) { 47 $code->writePHP($this->contents); 48 } 49 } 50 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sun Nov 28 19:36:09 2004 | Cross-referenced by PHPXref 0.5 |