| [ 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 * @tag pager:CURRENT 12 * @restrict_self_nesting 13 * @parent_tag_class WactPagerListTag 14 * @package wact 15 * @version $Id: current.tag.php 5945 2007-06-06 08:31:43Z pachanga $ 16 */ 17 class WactPagerDisplayedTag extends WactCompilerTag 18 { 19 function generateTagContent($code) 20 { 21 $parent = $this->findParentByClass('WactPagerNavigatorTag'); 22 23 $code->writePhp('if (' . $parent->getComponentRefCode() . '->isDisplayedPage()) {'); 24 25 $code->writePhp($this->getDataSource()->getComponentRefCode() . '["href"] = ' . $parent->getComponentRefCode() . '->getDisplayedPageUri();' . "\n"); 26 $code->writePhp($this->getDataSource()->getComponentRefCode() . '["number"] = ' . $parent->getComponentRefCode() . '->getPage();' . "\n"); 27 28 parent :: generateTagContent($code); 29 30 $code->writePhp('}'); 31 } 32 } 33 34 ?>
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 |