當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CGridColumn::renderHeaderCellContent方法代碼示例

本文整理匯總了PHP中CGridColumn::renderHeaderCellContent方法的典型用法代碼示例。如果您正苦於以下問題:PHP CGridColumn::renderHeaderCellContent方法的具體用法?PHP CGridColumn::renderHeaderCellContent怎麽用?PHP CGridColumn::renderHeaderCellContent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CGridColumn的用法示例。


在下文中一共展示了CGridColumn::renderHeaderCellContent方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: renderHeaderCellContent

 /**
  * Renders the header cell content.
  * This method will render a link that can trigger the sorting if the column is sortable.
  */
 protected function renderHeaderCellContent()
 {
     if ($this->grid->enableSorting && $this->sortable && $this->name !== null) {
         echo $this->grid->dataProvider->getSort()->link($this->name, $this->header);
     } else {
         parent::renderHeaderCellContent();
     }
 }
開發者ID:BGCX261,項目名稱:zii-svn-to-git,代碼行數:12,代碼來源:CDataColumn.php

示例2: renderHeaderCellContent

 /**
  * Renders the header cell content.
  * This method will render a link that can trigger the sorting if the column is sortable.
  */
 protected function renderHeaderCellContent()
 {
     if ($this->grid->enableSorting && $this->sortable && $this->name !== null) {
         echo $this->grid->dataProvider->getSort()->link($this->name, $this->header, array('class' => 'sort-link'));
     } elseif ($this->name !== null && $this->header === null) {
         if ($this->grid->dataProvider instanceof CActiveDataProvider) {
             echo CHtml::encode($this->grid->dataProvider->model->getAttributeLabel($this->name));
         } else {
             echo CHtml::encode($this->name);
         }
     } else {
         parent::renderHeaderCellContent();
     }
 }
開發者ID:DarkAiR,項目名稱:test,代碼行數:18,代碼來源:SelectColumn.php

示例3: renderHeaderCellContent

 /**
  * Renders the header cell content.
  * This method will render a checkbox in the header when {@link CGridView::selectableRows} is greater than 1.
  */
 protected function renderHeaderCellContent()
 {
     if ($this->grid->selectableRows > 1) {
         echo CHtml::checkBox($this->id . '_all', false);
     } else {
         parent::renderHeaderCellContent();
     }
 }
開發者ID:BGCX261,項目名稱:zii-svn-to-git,代碼行數:12,代碼來源:CCheckBoxColumn.php

示例4: renderHeaderCellContent

 /**
  * Render header cell (can not be sortable)
  */
 protected function renderHeaderCellContent()
 {
     if ($this->name !== null && $this->header === null) {
         if ($this->grid->dataProvider instanceof CActiveDataProvider) {
             echo CHtml::encode($this->grid->dataProvider->model->getAttributeLabel($this->name));
         } else {
             echo CHtml::encode($this->name);
         }
     } else {
         parent::renderHeaderCellContent();
     }
 }
開發者ID:rizaldi-github,項目名稱:Yii-Playground,代碼行數:15,代碼來源:XReorderColumn.php

示例5: renderHeaderCellContent

 /**
  * Renders the header cell content.
  * This method will render a checkbox in the header when {@link selectableRows} is greater than 1
  * or in case {@link selectableRows} is null when {@link CGridView::selectableRows} is greater than 1.
  */
 protected function renderHeaderCellContent()
 {
     if (trim($this->headerTemplate) === '') {
         echo $this->grid->blankDisplay;
         return;
     }
     $item = '';
     if ($this->selectableRows === null && $this->grid->selectableRows > 1) {
         $item = CHtml::checkBox($this->id . '_all', false, array('class' => 'select-on-check-all'));
     } elseif ($this->selectableRows > 1) {
         $item = CHtml::checkBox($this->id . '_all', false);
     } else {
         ob_start();
         parent::renderHeaderCellContent();
         $item = ob_get_clean();
     }
     echo strtr($this->headerTemplate, array('{item}' => $item));
 }
開發者ID:lucifurious,項目名稱:yii,代碼行數:23,代碼來源:CCheckBoxColumn.php

示例6: renderHeaderCellContent

 /**
  * Renders the header cell content.
  * This method will render a checkbox in the header when {@link selectableRows} is greater than 1
  * or in case {@link selectableRows} is null when {@link CGridView::selectableRows} is greater than 1.
  */
 protected function renderHeaderCellContent()
 {
     if ($this->selectableRows === null && $this->grid->selectableRows > 1) {
         echo CHtml::checkBox($this->id . '_all', false, array('class' => 'select-on-check-all'));
     } else {
         if ($this->selectableRows > 1) {
             echo CHtml::checkBox($this->id . '_all', false);
         } else {
             parent::renderHeaderCellContent();
         }
     }
 }
開發者ID:romeo14,項目名稱:pow,代碼行數:17,代碼來源:CCheckBoxColumn.php

示例7: renderHeaderCellContent

 protected function renderHeaderCellContent()
 {
     CGridColumn::renderHeaderCellContent();
 }
開發者ID:sundgaarden,項目名稱:dashboard,代碼行數:4,代碼來源:ACheckBoxColumn.php


注:本文中的CGridColumn::renderHeaderCellContent方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。