本文整理匯總了PHP中Tygh\Registry::clearCachedKeyValues方法的典型用法代碼示例。如果您正苦於以下問題:PHP Registry::clearCachedKeyValues方法的具體用法?PHP Registry::clearCachedKeyValues怎麽用?PHP Registry::clearCachedKeyValues使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Tygh\Registry
的用法示例。
在下文中一共展示了Registry::clearCachedKeyValues方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
}
if ($mode == 'update_status') {
$is_snapshot_correct = fn_check_addon_snapshot($_REQUEST['id']);
if (!$is_snapshot_correct) {
$status = false;
} else {
$status = fn_update_addon_status($_REQUEST['id'], $_REQUEST['status']);
}
if ($status !== true) {
Tygh::$app['ajax']->assign('return_status', $status);
}
Registry::clearCachedKeyValues();
}
if ($mode == 'install') {
fn_install_addon($_REQUEST['addon']);
Registry::clearCachedKeyValues();
}
if ($mode == 'uninstall') {
fn_uninstall_addon($_REQUEST['addon']);
}
return array(CONTROLLER_STATUS_OK, 'addons.manage');
}
if ($mode == 'update') {
$addon_name = addslashes($_REQUEST['addon']);
$section = Settings::instance()->getSectionByName($_REQUEST['addon'], Settings::ADDON_SECTION);
if (empty($section)) {
return array(CONTROLLER_STATUS_NO_PAGE);
}
$subsections = Settings::instance()->getSectionTabs($section['section_id'], CART_LANGUAGE);
$options = Settings::instance()->getList($section['section_id']);
fn_update_lang_objects('sections', $subsections);