| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Limb PHP Framework 4 * 5 * @link http://limb-project.com 6 * @copyright Copyright © 2004-2007 BIT(http://bit-creative.com) 7 * @license LGPL http://www.gnu.org/copyleft/lesser.html 8 */ 9 10 /** 11 * Base state handler for the WactSourceFileParser. 12 * @package wact 13 * @version $Id: WactBaseParsingState.class.php 5945 2007-06-06 08:31:43Z pachanga $ 14 */ 15 abstract class WactBaseParsingState 16 { 17 /** 18 * @var WactSourceFileParser 19 */ 20 protected $parser; 21 22 /** 23 * @var WactTreeBuilder 24 */ 25 protected $tree_builder; 26 27 function __construct($parser, $tree_builder) 28 { 29 $this->parser = $parser; 30 $this->tree_builder = $tree_builder; 31 } 32 33 function getAttributeString($attrs) 34 { 35 $attrib_str = ''; 36 foreach ( $attrs as $key => $value ) 37 { 38 if (strcasecmp($key, 'runat') == 0) 39 continue; 40 41 $attrib_str .= ' ' . $key; 42 if (!is_null($value)) 43 { 44 if (strpos($value, '"') === FALSE) 45 $attrib_str .= '="' . $value . '"'; 46 else 47 $attrib_str .= '=\'' . $value . '\''; 48 } 49 } 50 return $attrib_str; 51 } 52 } 53 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Sep 8 04:35:41 2008 | Cross-referenced by PHPXref 0.7 |