本文整理汇总了PHP中TYPO3\CMS\Backend\Template\DocumentTemplate::sectionHeader方法的典型用法代码示例。如果您正苦于以下问题:PHP DocumentTemplate::sectionHeader方法的具体用法?PHP DocumentTemplate::sectionHeader怎么用?PHP DocumentTemplate::sectionHeader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\CMS\Backend\Template\DocumentTemplate
的用法示例。
在下文中一共展示了DocumentTemplate::sectionHeader方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: listIndexDocuments
/**
* Queries Solr for this page's documents and lists them in a table.
*
* @return string HTML table of documents indexed for the current page.
*/
protected function listIndexDocuments()
{
$content = '';
$content .= $this->document->sectionHeader('Index Inspector');
$content .= '<div id="indexInspectorDocumentList"></div>';
return $content;
}
示例2: getCheckOptions
/**
* Builds the checkboxes out of the hooks array
*
* @param array $brokenLinkOverView Array of broken links information
* @param string $prefix
* @return string code content
*/
protected function getCheckOptions(array $brokenLinkOverView, $prefix = '')
{
$markerArray = array();
if (!empty($prefix)) {
$additionalAttr = ' class="' . $prefix . '"';
} else {
$additionalAttr = ' class="refresh"';
}
$checkOptionsTemplate = HtmlParser::getSubpart($this->doc->moduleTemplate, '###CHECKOPTIONS_SECTION###');
$hookSectionTemplate = HtmlParser::getSubpart($checkOptionsTemplate, '###HOOK_SECTION###');
$markerArray['statistics_header'] = $this->doc->sectionHeader($this->getLanguageService()->getLL('report.statistics.header'));
$markerArray['total_count_label'] = BackendUtility::wrapInHelp('linkvalidator', 'checkboxes', $this->getLanguageService()->getLL('overviews.nbtotal'));
$markerArray['total_count'] = $brokenLinkOverView['brokenlinkCount'] ?: '0';
$linktypes = GeneralUtility::trimExplode(',', $this->modTS['linktypes'], TRUE);
$hookSectionContent = '';
if (is_array($linktypes)) {
if (!empty($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks']) && is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks'])) {
foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks'] as $type => $value) {
if (in_array($type, $linktypes)) {
$hookSectionMarker = array('count' => $brokenLinkOverView[$type] ?: '0');
$translation = $this->getLanguageService()->getLL('hooks.' . $type) ?: $type;
$hookSectionMarker['option'] = '<input type="checkbox"' . $additionalAttr . ' id="' . $prefix . 'SET_' . $type . '" name="' . $prefix . 'SET[' . $type . ']" value="1"' . ($this->pObj->MOD_SETTINGS[$type] ? ' checked="checked"' : '') . '/>' . '<label for="' . $prefix . 'SET_' . $type . '">' . htmlspecialchars($translation) . '</label>';
$hookSectionContent .= HtmlParser::substituteMarkerArray($hookSectionTemplate, $hookSectionMarker, '###|###', TRUE, TRUE);
}
}
}
}
$checkOptionsTemplate = HtmlParser::substituteSubpart($checkOptionsTemplate, '###HOOK_SECTION###', $hookSectionContent);
return HtmlParser::substituteMarkerArray($checkOptionsTemplate, $markerArray, '###|###', TRUE, TRUE);
}