| @@ 795-807 (lines=13) @@ | ||
| 792 | /** |
|
| 793 | * @brief Set is_default as N in all modules(the default module is disabled) |
|
| 794 | */ |
|
| 795 | function clearDefaultModule() |
|
| 796 | { |
|
| 797 | $output = executeQuery('module.clearDefaultModule'); |
|
| 798 | if(!$output->toBool()) return $output; |
|
| 799 | ||
| 800 | $oCacheHandler = CacheHandler::getInstance('object', null, true); |
|
| 801 | if($oCacheHandler->isSupport()) |
|
| 802 | { |
|
| 803 | $oCacheHandler->invalidateGroupKey('site_and_module'); |
|
| 804 | } |
|
| 805 | ||
| 806 | return $output; |
|
| 807 | } |
|
| 808 | ||
| 809 | /** |
|
| 810 | * @brief Update menu_srl of mid which belongs to menu_srl |
|
| @@ 812-823 (lines=12) @@ | ||
| 809 | /** |
|
| 810 | * @brief Update menu_srl of mid which belongs to menu_srl |
|
| 811 | */ |
|
| 812 | function updateModuleMenu($args) |
|
| 813 | { |
|
| 814 | $output = executeQuery('module.updateModuleMenu', $args); |
|
| 815 | ||
| 816 | $oCacheHandler = CacheHandler::getInstance('object', null, true); |
|
| 817 | if($oCacheHandler->isSupport()) |
|
| 818 | { |
|
| 819 | $oCacheHandler->invalidateGroupKey('site_and_module'); |
|
| 820 | } |
|
| 821 | ||
| 822 | return $output; |
|
| 823 | } |
|
| 824 | ||
| 825 | /** |
|
| 826 | * @brief Update layout_srl of mid which belongs to menu_srl |
|