| [ 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 /** 12 * The parent compile time component for lists 13 * @tag list:LIST 14 * @convert_to_expression from 15 * @package wact 16 * @version $Id: list.tag.php 5945 2007-06-06 08:31:43Z pachanga $ 17 */ 18 class WactListListTag extends WactRuntimeComponentTag 19 { 20 protected $runtimeIncludeFile = 'limb/wact/src/components/list/WactListComponent.class.php'; 21 protected $runtimeComponentName = 'WactListComponent'; 22 23 function generateTagContent($code_writer) 24 { 25 if ($this->hasAttribute('from')) 26 { 27 $code_writer->writePHP($this->getComponentRefCode() . '->registerDataset('); 28 $this->attributeNodes['from']->generateExpression($code_writer); 29 $code_writer->writePHP(');' . "\n"); 30 } 31 32 $code_writer->writePHP($this->getComponentRefCode() . '->rewind();' . "\n"); 33 $code_writer->writePHP('if (' . $this->getComponentRefCode() . '->valid()) {' . "\n"); 34 35 parent :: generateTagContent($code_writer); 36 37 $code_writer->writePHP('}' . "\n"); 38 39 $emptyChild = $this->findImmediateChildByClass('WactListDefaultTag'); 40 if ($emptyChild) 41 { 42 $code_writer->writePHP(' else { ' . "\n"); 43 $emptyChild->generateNow($code_writer); 44 $code_writer->writePHP('}' . "\n"); 45 } 46 } 47 } 48 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jan 8 04:06:23 2009 | Cross-referenced by PHPXref 0.7 |