本文整理汇总了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);