| @@ 126-145 (lines=20) @@ | ||
| 123 | * @brief Delete module trigger |
|
| 124 | * |
|
| 125 | */ |
|
| 126 | function deleteModuleTriggers($module) |
|
| 127 | { |
|
| 128 | $args = new stdClass(); |
|
| 129 | $args->module = $module; |
|
| 130 | ||
| 131 | $output = executeQuery('module.deleteModuleTriggers', $args); |
|
| 132 | if($output->toBool()) |
|
| 133 | { |
|
| 134 | //remove from cache |
|
| 135 | $GLOBALS['__triggers__'] = NULL; |
|
| 136 | $oCacheHandler = CacheHandler::getInstance('object', NULL, TRUE); |
|
| 137 | if($oCacheHandler->isSupport()) |
|
| 138 | { |
|
| 139 | $cache_key = 'triggers'; |
|
| 140 | $oCacheHandler->delete($cache_key); |
|
| 141 | } |
|
| 142 | } |
|
| 143 | ||
| 144 | return $output; |
|
| 145 | } |
|
| 146 | ||
| 147 | /** |
|
| 148 | * @brief Add module extend |
|
| @@ 1071-1087 (lines=17) @@ | ||
| 1068 | /** |
|
| 1069 | * @brief Remove extra vars from the module |
|
| 1070 | */ |
|
| 1071 | function deleteModuleExtraVars($module_srl) |
|
| 1072 | { |
|
| 1073 | $args = new stdClass(); |
|
| 1074 | $args->module_srl = $module_srl; |
|
| 1075 | $output = executeQuery('module.deleteModuleExtraVars', $args); |
|
| 1076 | ||
| 1077 | //remove from cache |
|
| 1078 | $oCacheHandler = CacheHandler::getInstance('object', null, true); |
|
| 1079 | if($oCacheHandler->isSupport()) |
|
| 1080 | { |
|
| 1081 | $object_key = 'module_extra_vars:'.$module_srl; |
|
| 1082 | $cache_key = $oCacheHandler->getGroupKey('site_and_module', $object_key); |
|
| 1083 | $oCacheHandler->delete($cache_key); |
|
| 1084 | } |
|
| 1085 | ||
| 1086 | return $output; |
|
| 1087 | } |
|
| 1088 | ||
| 1089 | /** |
|
| 1090 | * @brief Grant permission to the module |
|