stop('msg_cart_is_null'); $comment_srl_list= explode('|@|', $cart); $comment_count = count($comment_srl_list); if(!$comment_count) return $this->stop('msg_cart_is_null'); $oCommentController = &getController('comment'); // 글삭제 for($i=0;$i<$comment_count;$i++) { $comment_srl = trim($comment_srl_list[$i]); if(!$comment_srl) continue; $output = $oCommentController->deleteComment($comment_srl, true); if(!$output->toBool()) return $output; } $this->setMessage( sprintf(Context::getLang('msg_checked_comment_is_deleted'), $comment_count) ); } /** * @brief 특정 모듈의 모든 댓글 삭제 **/ function deleteModuleComments($module_srl) { $args->module_srl = $module_srl; $output = executeQuery('comment.deleteModuleComments', $args); return $output; } } ?>