PHP 클래스 Newscoop\GimmeBundle\Controller\CommentsController

상속: extends FOS\RestBundle\Controller\FOSRestController
파일 보기 프로젝트 열기: sourcefabric/newscoop

공개 메소드들

메소드 설명
createCommentAction ( Request $request, $articleNumber, $languageCode ) : Form Create new comment
deleteCommentAction ( Request $request, $commentId, $articleNumber = null, $languageCode = null ) : Form Delete comment
getCommentAction ( $id ) : Form Get comment
getCommentsAction ( ) : array Get all comments
getCommentsForArticleAction ( Request $request, $number, $language, $order ) Get comments for article
updateCommentAction ( Request $request, $commentId ) : Form Update comment

비공개 메소드들

메소드 설명
processForm ( Request $request, integer $comment = null, integer $articleNumber = null, string $languageCode = null ) : Form Process comment form

메소드 상세

createCommentAction() 공개 메소드

**Comment available statuses:** APPROVED - 0 PENDING - 1 HIDDEN - 2 DELETED - 3
public createCommentAction ( Request $request, $articleNumber, $languageCode ) : Form
$request Symfony\Component\HttpFoundation\Request
리턴 Form

deleteCommentAction() 공개 메소드

Delete comment
public deleteCommentAction ( Request $request, $commentId, $articleNumber = null, $languageCode = null ) : Form
$request Symfony\Component\HttpFoundation\Request
리턴 Form

getCommentAction() 공개 메소드

Get comment
public getCommentAction ( $id ) : Form
리턴 Form

getCommentsAction() 공개 메소드

Get all comments
public getCommentsAction ( ) : array
리턴 array

getCommentsForArticleAction() 공개 메소드

Get comments for article
public getCommentsForArticleAction ( Request $request, $number, $language, $order )
$request Symfony\Component\HttpFoundation\Request

updateCommentAction() 공개 메소드

Update comment
public updateCommentAction ( Request $request, $commentId ) : Form
$request Symfony\Component\HttpFoundation\Request
리턴 Form