/**
  * Renders a section of the specified name.
  * If the named section is not supported, false will be returned.
  * @param string $name the section name, e.g., `{summary}`, `{items}`.
  * @return string|boolean the rendering result of the section, or false if the named section is not supported.
  */
 public function renderSection($name)
 {
     if ($name == '{pagerTop}') {
         return $this->renderPagerTop();
     }
     return parent::renderSection($name);
 }
示例#2
0
 /**
  * @inheritdoc
  */
 public function renderSection($name)
 {
     switch ($name) {
         case "{pagesizer}":
             return $this->renderPagesizer();
         default:
             return parent::renderSection($name);
     }
 }
示例#3
0
 /**
  * Renders a custom section if is specified otherwise calls parent render method
  * @param string $name the section name, e.g., `{summary}`, `{items}`.
  * @return string|boolean the rendering result of the section, or false if the named section is not supported.
  */
 public function renderCustomSection($name)
 {
     if (isset($this->sections[$name])) {
         return $this->sections[$name] ? $this->sections[$name] : '';
     }
     return parent::renderSection($name);
 }