本文整理汇总了PHP中CProfile::isModified方法的典型用法代码示例。如果您正苦于以下问题:PHP CProfile::isModified方法的具体用法?PHP CProfile::isModified怎么用?PHP CProfile::isModified使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CProfile
的用法示例。
在下文中一共展示了CProfile::isModified方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getHistoryUrl
}
// history
if (isset($page['hist_arg']) && CWebUser::$data['alias'] != ZBX_GUEST_USER && $page['type'] == PAGE_TYPE_HTML && !defined('ZBX_PAGE_NO_MENU')) {
// if URL length is greater than DB field size, skip history update
$url = getHistoryUrl($page);
if ($url) {
DBstart();
$result = addUserHistory($page['title'], $url);
DBend($result);
}
}
// last page
if (!defined('ZBX_PAGE_NO_MENU') && $page['file'] != 'profile.php') {
CProfile::update('web.paging.lastpage', $page['file'], PROFILE_TYPE_STR);
}
if (CProfile::isModified()) {
DBstart();
$result = CProfile::flush();
DBend($result);
}
// end transactions if they have not been closed already
if (isset($DB) && isset($DB['TRANSACTIONS']) && $DB['TRANSACTIONS'] != 0) {
error(_('Transaction has not been closed. Aborting...'));
DBend(false);
}
show_messages();
if (in_array($page['type'], array(PAGE_TYPE_HTML_BLOCK, PAGE_TYPE_HTML))) {
if (!is_null(CWebUser::$data) && isset(CWebUser::$data['debug_mode']) && CWebUser::$data['debug_mode'] == GROUP_DEBUG_MODE_ENABLED) {
CProfiler::getInstance()->stop();
CProfiler::getInstance()->show();
}
示例2: run
/**
* Main controller processing routine. Returns response object: data, redirect or fatal redirect.
*
* @return var
*/
public final function run()
{
if ($this->validateSID && !$this->checkSID()) {
access_deny(ACCESS_DENY_PAGE);
}
if ($this->checkInput()) {
if ($this->checkPermissions() !== true) {
access_deny(ACCESS_DENY_PAGE);
}
$this->doAction();
}
if (CProfile::isModified()) {
DBstart();
$result = CProfile::flush();
DBend($result);
}
return $this->getResponse();
}