本文整理汇总了PHP中Fisharebest\Webtrees\Database::getQueryLog方法的典型用法代码示例。如果您正苦于以下问题:PHP Database::getQueryLog方法的具体用法?PHP Database::getQueryLog怎么用?PHP Database::getQueryLog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Fisharebest\Webtrees\Database
的用法示例。
在下文中一共展示了Database::getQueryLog方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pageFooterPopupWindow
/**
* Print the page footer, using the theme
* Note that popup windows are deprecated
*/
public function pageFooterPopupWindow()
{
echo Theme::theme()->footerContainerPopupWindow() . '<!--[if lt IE 9]><script src="' . WT_JQUERY_JS_URL . '"></script><![endif]-->' . '<!--[if gte IE 9]><!--><script src="' . WT_JQUERY2_JS_URL . '"></script><!--<![endif]-->' . '<script src="' . WT_JQUERYUI_JS_URL . '">"</script>' . '<script src="' . WT_WEBTREES_JS_URL . '">"</script>' . $this->getJavascript() . Theme::theme()->hookFooterExtraJavascript() . (WT_DEBUG_SQL ? Database::getQueryLog() : '') . '</body>' . '</html>' . PHP_EOL . '<!-- webtrees: ' . WT_VERSION . ' -->' . '<!-- Execution time: ' . I18N::number(microtime(true) - WT_START_TIME, 3) . ' seconds -->' . '<!-- Memory: ' . I18N::number(memory_get_peak_usage(true) / 1024) . ' KB -->' . '<!-- SQL queries: ' . I18N::number(Database::getQueryCount()) . ' -->';
}
示例2: ajaxRequest
/**
* Handle AJAX requests - to generate the tab content
*/
public function ajaxRequest()
{
// Search engines should not make AJAX requests
if (Auth::isSearchEngine()) {
http_response_code(403);
exit;
}
// Initialise tabs
$tab = Filter::get('module');
// A request for a non-existant tab?
if (array_key_exists($tab, $this->tabs)) {
$mod = $this->tabs[$tab];
} else {
http_response_code(404);
exit;
}
header("Content-Type: text/html; charset=UTF-8");
// AJAX calls do not have the meta tag headers and need this set
header("X-Robots-Tag: noindex,follow");
// AJAX pages should not show up in search results, any links can be followed though
echo $mod->getTabContent();
if (WT_DEBUG_SQL) {
echo Database::getQueryLog();
}
}
示例3: pageFooter
/**
* Print the page footer, using the theme
*/
public function pageFooter()
{
if (WT_DEBUG_SQL) {
echo Database::getQueryLog();
}
echo $this->getJavascript();
}