[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/wact/src/tags/pager/ -> prev_disabled.tag.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   * @tag pager:prev:DISABLED
  12   * @parent_tag_class WactPagerNavigatorTag
  13   * @package wact
  14   * @version $Id: prev_disabled.tag.php 5945 2007-06-06 08:31:43Z pachanga $
  15   */
  16  class WactPagerPrevTagDisabled extends WactCompilerTag
  17  {
  18    function generateTagContent($code)
  19    {
  20      $parent = $this->findParentByClass('WactPagerNavigatorTag');
  21  
  22      $code->writePhp('if (!' . $parent->getComponentRefCode() . '->hasPrev()) {');
  23  
  24      parent :: generateTagContent($code);
  25  
  26      $code->writePhp('}');
  27    }
  28  }
  29  
  30  ?>


Generated: Thu Jan 8 04:06:23 2009 Cross-referenced by PHPXref 0.7