本文整理匯總了PHP中vB_DataManager::post_save_once方法的典型用法代碼示例。如果您正苦於以下問題:PHP vB_DataManager::post_save_once方法的具體用法?PHP vB_DataManager::post_save_once怎麽用?PHP vB_DataManager::post_save_once使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類vB_DataManager
的用法示例。
在下文中一共展示了vB_DataManager::post_save_once方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
/**
* Additional data to update after a save call (such as denormalized values in other tables).
* In batch updates, is executed once after all records are updated.
*
* @param boolean Do the query?
*/
function post_save_once($doquery = true)
{
parent::post_save_once($doquery);
if (!empty($this->moderator['userid'])) {
vB_Cache::allCacheEvent('userChg_' . $this->moderator['userid']);
}
vB::getUserContext()->rebuildGroupAccess();
}
示例2: post_save_once
public function post_save_once($doquery = true)
{
parent::post_save_once($doquery);
require_once DIR . '/includes/adminfunctions_template.php';
//print_rebuild_style(-1, '', 0, 1, 1, 0, false);
build_style(-1, '', array('docss' => 0, 'dostylevars' => 1, 'doreplacements' => 0, 'doposteditor' => 0), '-1,1', '', false, false);
}
示例3:
/**
* Additional data to update after a save call (such as denormalized values in other tables).
* In batch updates, is executed once after all records are updated.
*
* @param boolean Do the query?
*/
function post_save_once($doquery = true)
{
require_once DIR . '/includes/functions_calendar.php';
build_events();
return parent::post_save_once($doquery);
}