PHP 클래스 Newscoop\GimmeBundle\Controller\AuthorsController

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

공개 메소드들

메소드 설명
getArticleAuthorAction ( $number, $language, $id ) Get single article author
getArticleAuthorsAction ( $number, $language ) Get article authors
getAuthorAction ( $id ) Get author
getAuthorByIdAction ( $id ) Get author
getAuthorTypeAction ( $id ) Get author type
getAuthorsTypesAction ( ) Get authors types
searchAuthorsAction ( Request $request ) Search for authors
setArticleAuthorsOrderAction ( Request $request, $number, $language ) Set article authors order
updateArticleAuthorAction ( Request $request, $number, $language, $authorId ) Update single article author

메소드 상세

getArticleAuthorAction() 공개 메소드

Get single article author
public getArticleAuthorAction ( $number, $language, $id )

getArticleAuthorsAction() 공개 메소드

Get article authors
public getArticleAuthorsAction ( $number, $language )

getAuthorAction() 공개 메소드

This route will be removed in 4.4
사용 중단:
public getAuthorAction ( $id )

getAuthorByIdAction() 공개 메소드

Get author
public getAuthorByIdAction ( $id )

getAuthorTypeAction() 공개 메소드

Get single author type
public getAuthorTypeAction ( $id )

getAuthorsTypesAction() 공개 메소드

Get list of authors types

searchAuthorsAction() 공개 메소드

Get list of authors for search query
public searchAuthorsAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request

setArticleAuthorsOrderAction() 공개 메소드

New order must be send with form in this format order={authorId}-{authorType},{authorId}-{authorType},{authorId}-{authorType},{authorId}-{authorType} example: order=7-1,8-1,5-2,4-2 All article author-author type pair must be send.
public setArticleAuthorsOrderAction ( Request $request, $number, $language )
$request Symfony\Component\HttpFoundation\Request

updateArticleAuthorAction() 공개 메소드

To update currently assigned article author you need provide his old and new article type, it can be done with special link header value: , example: **To update artile author with number 7 and type 1 to type 2 you need to send**: [POST] /articles/{number}/{language}/authors/7 **With header link and his value:** ,
public updateArticleAuthorAction ( Request $request, $number, $language, $authorId )
$request Symfony\Component\HttpFoundation\Request