本文整理汇总了PHP中ViewFactory::buildSubMenu方法的典型用法代码示例。如果您正苦于以下问题:PHP ViewFactory::buildSubMenu方法的具体用法?PHP ViewFactory::buildSubMenu怎么用?PHP ViewFactory::buildSubMenu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ViewFactory
的用法示例。
在下文中一共展示了ViewFactory::buildSubMenu方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}