| @@ 28-45 (lines=18) @@ | ||
| 25 | * Modify comment(s) status to publish/unpublish if calling module is using Comment Approval System |
|
| 26 | * @return void |
|
| 27 | */ |
|
| 28 | function procCommentAdminChangePublishedStatusChecked() |
|
| 29 | { |
|
| 30 | // Error display if none is selected |
|
| 31 | $cart = Context::get('cart'); |
|
| 32 | if(!is_array($cart)) |
|
| 33 | { |
|
| 34 | $comment_srl_list = explode('|@|', $cart); |
|
| 35 | } |
|
| 36 | else |
|
| 37 | { |
|
| 38 | $comment_srl_list = $cart; |
|
| 39 | } |
|
| 40 | ||
| 41 | $this->procCommentAdminChangeStatus(); |
|
| 42 | ||
| 43 | $returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispCommentAdminList', 'search_keyword', ''); |
|
| 44 | $this->setRedirectUrl($returnUrl); |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * Change comment status |
|
| @@ 20-31 (lines=12) @@ | ||
| 17 | /** |
|
| 18 | * @brief Add the module category |
|
| 19 | */ |
|
| 20 | function procModuleAdminInsertCategory() |
|
| 21 | { |
|
| 22 | $args = new stdClass(); |
|
| 23 | $args->title = Context::get('title'); |
|
| 24 | $output = executeQuery('module.insertModuleCategory', $args); |
|
| 25 | if(!$output->toBool()) return $output; |
|
| 26 | ||
| 27 | $this->setMessage("success_registed"); |
|
| 28 | ||
| 29 | $returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispModuleAdminCategory'); |
|
| 30 | $this->setRedirectUrl($returnUrl); |
|
| 31 | } |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @brief Update category |
|