PHP 클래스 Ojs\ApiBundle\Controller\Journal\JournalArticleRestController

상속: extends Ojs\ApiBundle\Controller\ApiController
파일 보기 프로젝트 열기: ojs/ojs

공개 메소드들

메소드 설명
deleteArticleAction ( $id ) : Response
getArticleAction ( integer $id ) : array Get single Article.
getArticlesAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Articles.
newArticleAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Article.
patchArticleAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing journal_article from the submitted data or create a new journal_article at a specific location.
postArticleAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Article from the submitted data.
putArticleAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Article from the submitted data or create a new Article at a specific location.

보호된 메소드들

메소드 설명
getOr404 ( mixed $id, boolean $normalize = false ) : Article Fetch a Article or throw an 404 Exception.

메소드 상세

deleteArticleAction() 공개 메소드

public deleteArticleAction ( $id ) : Response
$id
리턴 Response

getArticleAction() 공개 메소드

Get single Article.
public getArticleAction ( integer $id ) : array
$id integer the Article id
리턴 array

getArticlesAction() 공개 메소드

List all Articles.
public getArticlesAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array
$request Symfony\Component\HttpFoundation\Request the request object
$paramFetcher FOS\RestBundle\Request\ParamFetcherInterface param fetcher service
리턴 array

getOr404() 보호된 메소드

Fetch a Article or throw an 404 Exception.
protected getOr404 ( mixed $id, boolean $normalize = false ) : Article
$id mixed
$normalize boolean
리턴 Ojs\JournalBundle\Entity\Article

newArticleAction() 공개 메소드

Presents the form to use to create a new Article.
public newArticleAction ( ) : Symfony\Component\Form\FormTypeInterface
리턴 Symfony\Component\Form\FormTypeInterface

patchArticleAction() 공개 메소드

Update existing journal_article from the submitted data or create a new journal_article at a specific location.
public patchArticleAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
$id integer the journal_article id
리턴 Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

postArticleAction() 공개 메소드

Create a Article from the submitted data.
public postArticleAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
리턴 Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

putArticleAction() 공개 메소드

Update existing Article from the submitted data or create a new Article at a specific location.
public putArticleAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
$id integer the Article id
리턴 Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View