PHP 클래스 Ojs\ApiBundle\Controller\Admin\JournalRestController

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

공개 메소드들

메소드 설명
deleteJournalAction ( $id ) : Response
getJournalAction ( integer $id ) : array Get single Journal.
getJournalsAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Journals.
newJournalAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Journal.
patchJournalAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing journal from the submitted data or create a new journal at a specific location.
postJournalAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Journal from the submitted data.
putJournalAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Journal from the submitted data or create a new Journal at a specific location.

보호된 메소드들

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

메소드 상세

deleteJournalAction() 공개 메소드

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

getJournalAction() 공개 메소드

Get single Journal.
public getJournalAction ( integer $id ) : array
$id integer the Journal id
리턴 array

getJournalsAction() 공개 메소드

List all Journals.
public getJournalsAction ( 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 Journal or throw an 404 Exception.
protected getOr404 ( mixed $id, boolean $normalize = false ) : Journal
$id mixed
$normalize boolean
리턴 Ojs\JournalBundle\Entity\Journal

newJournalAction() 공개 메소드

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

patchJournalAction() 공개 메소드

Update existing journal from the submitted data or create a new journal at a specific location.
public patchJournalAction ( 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 id
리턴 Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

postJournalAction() 공개 메소드

Create a Journal from the submitted data.
public postJournalAction ( 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

putJournalAction() 공개 메소드

Update existing Journal from the submitted data or create a new Journal at a specific location.
public putJournalAction ( 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 id
리턴 Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View