本文整理匯總了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();
}