本文整理汇总了PHP中upgrade_setup_debug函数的典型用法代码示例。如果您正苦于以下问题:PHP upgrade_setup_debug函数的具体用法?PHP upgrade_setup_debug怎么用?PHP upgrade_setup_debug使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了upgrade_setup_debug函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: upgrade_finished
/**
* Indicates upgrade is finished.
*
* This function may be called repeatedly.
*
* @global object
* @global object
*/
function upgrade_finished($continueurl=null) {
global $CFG, $DB, $OUTPUT;
if (!empty($CFG->upgraderunning)) {
unset_config('upgraderunning');
upgrade_setup_debug(false);
ignore_user_abort(false);
if ($continueurl) {
echo $OUTPUT->continue_button($continueurl);
echo $OUTPUT->footer();
die;
}
}
}
开发者ID:nicusX,项目名称:moodle,代码行数:22,代码来源:upgradelib.php
示例2: upgrade_finished
/**
* Indicates upgrade is finished.
*
* This function may be called repeatedly.
*
* @global object
* @global object
*/
function upgrade_finished($continueurl=null) {
global $CFG, $DB, $OUTPUT;
if (!empty($CFG->upgraderunning)) {
unset_config('upgraderunning');
// We have to forcefully purge the caches using the writer here.
// This has to be done after we unset the config var. If someone hits the site while this is set they will
// cause the config values to propogate to the caches.
// Caches are purged after the last step in an upgrade but there is several code routines that exceute between
// then and now that leaving a window for things to fall out of sync.
cache_helper::purge_all(true);
upgrade_setup_debug(false);
ignore_user_abort(false);
if ($continueurl) {
echo $OUTPUT->continue_button($continueurl);
echo $OUTPUT->footer();
die;
}
}
}
开发者ID:jtibbetts,项目名称:moodle,代码行数:28,代码来源:upgradelib.php
示例3: upgrade_finished
/**
* Indicates upgrade is finished.
*
* This function may be called repeatedly.
*/
function upgrade_finished($continueurl = null)
{
global $CFG, $DB;
if (!empty($CFG->upgraderunning)) {
unset_config('upgraderunning');
upgrade_setup_debug(false);
ignore_user_abort(false);
if ($continueurl) {
print_continue($continueurl);
print_footer('upgrade');
die;
}
}
}
开发者ID:nicolasconnault,项目名称:moodle2.0,代码行数:19,代码来源:upgradelib.php
注:本文中的upgrade_setup_debug函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论