コード例 #1
0
ファイル: comments.php プロジェクト: vazahat/dudex
 public function deleteCommentAtatchment()
 {
     $commentArray = $this->getCommentInfoForDelete();
     $comment = $commentArray['comment'];
     $this->deleteAttachmentFiles($comment);
     $comment->setAttachment(null);
     $this->commentService->updateComment($comment);
     exit;
 }
コード例 #2
0
ファイル: comments.php プロジェクト: ZyXelP/oxwall
 public function deleteCommentAtatchment()
 {
     /* @var $comment BOL_Comment */
     $commentArray = $this->getCommentInfoForDelete();
     $comment = $commentArray['comment'];
     $this->deleteAttachmentFiles($comment);
     if (!trim($comment->getMessage())) {
         $this->commentService->deleteComment($comment->getId());
     } else {
         $comment->setAttachment(null);
         $this->commentService->updateComment($comment);
     }
     exit;
 }