@@ 216-235 (lines=20) @@ | ||
213 | * @brief Enter a specific set of modules |
|
214 | * In order to manage global configurations of modules such as board, member and so on |
|
215 | */ |
|
216 | function insertModuleConfig($module, $config, $site_srl = 0) |
|
217 | { |
|
218 | $args =new stdClass(); |
|
219 | $args->module = $module; |
|
220 | $args->config = serialize($config); |
|
221 | $args->site_srl = $site_srl; |
|
222 | ||
223 | $output = executeQuery('module.deleteModuleConfig', $args); |
|
224 | if(!$output->toBool()) return $output; |
|
225 | ||
226 | $output = executeQuery('module.insertModuleConfig', $args); |
|
227 | ||
228 | //remove from cache |
|
229 | $oCacheHandler = CacheHandler::getInstance('object', NULL, TRUE); |
|
230 | if($oCacheHandler->isSupport()) |
|
231 | { |
|
232 | $oCacheHandler->invalidateGroupKey('site_and_module'); |
|
233 | } |
|
234 | return $output; |
|
235 | } |
|
236 | ||
237 | /** |
|
238 | * @brief Save module configurations of the mid |
|
@@ 241-261 (lines=21) @@ | ||
238 | * @brief Save module configurations of the mid |
|
239 | * Manage mid configurations depending on module |
|
240 | */ |
|
241 | function insertModulePartConfig($module, $module_srl, $config) |
|
242 | { |
|
243 | $args = new stdClass(); |
|
244 | $args->module = $module; |
|
245 | $args->module_srl = $module_srl; |
|
246 | $args->config = serialize($config); |
|
247 | ||
248 | $output = executeQuery('module.deleteModulePartConfig', $args); |
|
249 | if(!$output->toBool()) return $output; |
|
250 | ||
251 | $output = executeQuery('module.insertModulePartConfig', $args); |
|
252 | ||
253 | //remove from cache |
|
254 | $oCacheHandler = CacheHandler::getInstance('object', NULL, TRUE); |
|
255 | if($oCacheHandler->isSupport()) |
|
256 | { |
|
257 | $oCacheHandler->invalidateGroupKey('site_and_module'); |
|
258 | } |
|
259 | ||
260 | return $output; |
|
261 | } |
|
262 | ||
263 | /** |
|
264 | * @brief create virtual site |