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


PHP ViewFactory::buildTableHeader方法代碼示例

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


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

示例1: __viewIndex

 /**
  * Builds the content view
  */
 public function __viewIndex()
 {
     $title = $this->_tables[$this->_curColor];
     $this->setPageType('table');
     $this->setTitle(sprintf('%1$s: %2$s – %3$s', extension_anti_brute_force::EXT_NAME, $title, __('Symphony')));
     $this->addStylesheetToHead(URL . '/extensions/anti_brute_force/assets/content.abf.css', 'screen', time() + 10);
     $this->appendSubheading(__($title));
     $cols = $this->getCurrentCols();
     // build header table
     $aTableHead = ViewFactory::buildTableHeader($cols);
     // build body table
     $aTableBody = ViewFactory::buildTableBody($cols, $this->getData());
     // build data table
     $table = Widget::Table(Widget::TableHead($aTableHead), NULL, Widget::TableBody($aTableBody), 'selectable', null, array('role' => 'directory', 'aria-labelledby' => 'symphony-subheading', 'data-interactive' => 'data-interactive'));
     // build the color select box
     $this->Context->appendChild(ViewFactory::buildSubMenu($this->_tables, $this->_curColor, 'switch'));
     // append table
     $this->Form->appendChild($table);
     // insert form
     $insertLine = $this->buildInsertForm();
     // append actions
     $insertLine->appendChild(ViewFactory::buildActions($this->_hasData));
     // append the insert line
     $this->Form->appendChild($insertLine);
 }
開發者ID:korelogic,項目名稱:anti_brute_force,代碼行數:28,代碼來源:content.colored_lists.php

示例2: __viewIndex

 /**
  * Builds the content view
  */
 public function __viewIndex()
 {
     // Get data
     $this->_data = ABF::instance()->getFailures('IP ASC');
     $this->_hasData = is_array($this->_data) && count($this->_data) > 0;
     // Build the page
     $title = __('Banned IPs');
     $this->setPageType('table');
     $this->setTitle(__('%1$s – %2$s', array(__('Symphony'), $title)));
     $this->appendSubheading(__($title));
     // build header table
     $aTableHead = ViewFactory::buildTableHeader($this->_cols);
     // build body table
     $aTableBody = ViewFactory::buildTableBody($this->_cols, $this->_data);
     // build data table
     $table = Widget::Table(Widget::TableHead($aTableHead), NULL, Widget::TableBody($aTableBody), 'selectable', null, array('role' => 'directory', 'aria-labelledby' => 'symphony-subheading', 'data-interactive' => 'data-interactive'));
     $this->Form->appendChild($table);
     $this->Form->appendChild(ViewFactory::buildActions($this->_hasData));
 }
開發者ID:korelogic,項目名稱:anti_brute_force,代碼行數:22,代碼來源:content.banned_ips.php


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