function procSocialxeDeleteComment() { $comment_srl = Context::get('comment_srl'); if (!$comment_srl) { return $this->stop('msg_invalid_request'); } // 우선 SocialCommentItem을 만든다. // DB에서 읽어오게 되지만, 어차피 권한 체크하려면 읽어야 한다. $oComment = new socialCommentItem($comment_srl); // comment 모듈의 controller 객체 생성 $oCommentController =& getController('comment'); $output = $oCommentController->deleteComment($comment_srl, $oComment->isGranted()); if (!$output->toBool()) { return $output; } // 위젯에서 화면 갱신에 사용할 정보 세팅 $this->add('skin', Context::get('skin')); $this->add('document_srl', Context::get('document_srl')); $this->add('comment_srl', Context::get('comment_srl')); $this->add('list_count', Context::get('list_count')); $this->add('content_link', Context::get('content_link')); $this->setMessage('success_deleted'); }