renderSection() public method

public renderSection ( $name )
示例#1
0
 public function renderSection($name)
 {
     if ($name == '{tools}') {
         return $this->renderTools();
     } else {
         return parent::renderSection($name);
     }
 }
示例#2
0
 /**
  * @inheritdoc
  */
 public function renderSection($name)
 {
     if (isset($this->pluginSections[$name])) {
         return $this->pluginSections[$name]->run();
     } else {
         return parent::renderSection($name);
     }
 }
示例#3
0
 /**
  * @inheritdoc
  */
 public function renderSection($name)
 {
     switch ($name) {
         case "{toolbar}":
             return $this->renderToolbar();
         default:
             return parent::renderSection($name);
     }
 }
示例#4
0
 /**
  * @inheritdoc
  */
 public function renderSection($name)
 {
     switch ($name) {
         case '{button}':
             return $this->button;
         default:
             return parent::renderSection($name);
     }
 }
示例#5
0
 public function renderSection($name)
 {
     switch ($name) {
         case '{bulkActions}':
             return $this->renderBulkActions();
         default:
             return parent::renderSection($name);
     }
 }
示例#6
0
 /**
  * @inheritdoc
  */
 public function renderSection($name)
 {
     switch ($name) {
         case "{pagesizer}":
             return $this->renderPagesizer();
         default:
             return parent::renderSection($name);
     }
 }
示例#7
0
 /**
  * @inheritdoc
  */
 public function renderSection($name)
 {
     switch ($name) {
         case '{menu}':
             return $this->renderMenu();
         case '{toolbar}':
             return $this->renderToolbar();
         case '{pageSize}':
             return $this->renderPageSize();
         case '{actions}':
             return $this->renderActions();
     }
     return parent::renderSection($name);
 }
示例#8
0
 /**
  * @inheritdoc
  */
 public function renderSection($name)
 {
     if (parent::renderSection($name) !== false) {
         return parent::renderSection($name);
     }
     switch ($name) {
         case '{buttons}':
             return $this->renderButtons();
         case '{lengthPicker}':
             return $this->renderLengthPicker();
         case '{quickSearch}':
             return $this->renderQuickSearch();
         default:
             return false;
     }
 }
示例#9
0
文件: GridView.php 项目: Liv1020/cms
 /**
  * @param string $name
  * @return bool|string
  */
 public function renderSection($name)
 {
     switch ($name) {
         case "{beforeTable}":
             return $this->renderBeforeTable();
         case "{afterTable}":
             return $this->renderAfterTable();
         case "{perPage}":
             return $this->renderPerPage();
         default:
             return parent::renderSection($name);
     }
 }
示例#10
0
 public function renderSection($name)
 {
     switch ($name) {
         case "{settings}":
             return $this->renderSettings();
         default:
             return parent::renderSection($name);
     }
 }
示例#11
0
 /**
  * @inheritdoc
  */
 public function renderSection($name)
 {
     if ($name === '{caption}') {
         return $this->renderCaption();
     }
     return parent::renderSection($name);
 }