/**
 * Writes the closing tag string to the compiled template
 */
 public function postGenerate($code)
 {
   if ($this->has_closing_tag)
   {
     $code->writeHtml('</' . $this->getRenderedTag() . '>');
   }
   parent::postGenerate($code);
 }
예제 #2
0
  public function postGenerate($code)
  {
    if (!$this->hide_for_current_page)
    {
      $parent = $this->findParentByClass('pager_navigator_tag');
      $code->writePhp('if (' . $parent->getComponentRefCode() . '->has_prev()) {');
    }
    parent::postGenerate($code);

    $code->writePhp('}');
  }
예제 #3
0
  public function postGenerate($code)
  {
    $code->writePhp('} else {');

    if ($default = $this->findImmediateChildByClass('grid_default_tag'))
      $default->generateNow($code);

    $code->writePhp('}');

    if ($this->has_form)
    {
      $code->writeHtml('</form>');
    }

    parent :: postGenerate($code);
  }
예제 #4
0
 public function postGenerate($code)
 {
   $code->writePhp('}');
   parent::postGenerate($code);
 }