本文整理汇总了PHP中CTabView::setDisabled方法的典型用法代码示例。如果您正苦于以下问题:PHP CTabView::setDisabled方法的具体用法?PHP CTabView::setDisabled怎么用?PHP CTabView::setDisabled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTabView
的用法示例。
在下文中一共展示了CTabView::setDisabled方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$graphsLink = _('Graphs');
$discoveryLink = _('Discovery');
$webLink = _('Web');
}
$configurationArray = array($hostLink, new CSpan(array($applicationsLink, SPACE, '(' . $this->data['host']['applications'] . ')'), 'overview-link'), new CSpan(array($itemsLink, SPACE, '(' . $this->data['host']['items'] . ')'), 'overview-link'), new CSpan(array($triggersLink, SPACE, '(' . $this->data['host']['triggers'] . ')'), 'overview-link'), new CSpan(array($graphsLink, SPACE, '(' . $this->data['host']['graphs'] . ')'), 'overview-link'), new CSpan(array($discoveryLink, SPACE, '(' . $this->data['host']['discoveries'] . ')'), 'overview-link'), new CSpan(array($webLink, SPACE, '(' . $this->data['host']['httpTests'] . ')'), 'overview-link'));
$overviewFormList->addRow(_('Configuration'), $configurationArray);
$hostInventoriesTab = new CTabView(array('remember' => true));
$hostInventoriesTab->setSelected(0);
$hostInventoriesTab->addTab('overviewTab', _('Overview'), $overviewFormList);
/*
* Details tab
*/
$detailsFormList = new CFormList();
$inventoryValues = false;
if ($this->data['host']['inventory']) {
foreach ($this->data['host']['inventory'] as $key => $value) {
if (!zbx_empty($value)) {
$detailsFormList->addRow($this->data['tableTitles'][$key]['title'], new CSpan(zbx_str2links($value), 'text-field'));
$inventoryValues = true;
}
}
}
if (!$inventoryValues) {
$hostInventoriesTab->setDisabled(array(1));
}
$hostInventoriesTab->addTab('detailsTab', _('Details'), $detailsFormList);
// append tabs and form
$hostInventoriesForm->addItem($hostInventoriesTab);
$hostInventoriesForm->addItem(makeFormFooter(null, new CButtonCancel(url_param('groupid'))));
$hostInventoryWidget->addItem($hostInventoriesForm);
return $hostInventoryWidget;