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

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

공개 메소드들

메소드 설명
deleteSectionAction ( $id ) : Response
getSectionAction ( integer $id ) : array Get single Section.
getSectionsAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Sections.
newSectionAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Section.
patchSectionAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing journal_section from the submitted data or create a new journal_section at a specific location.
postSectionAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Section from the submitted data.
putSectionAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Section from the submitted data or create a new Section at a specific location.

보호된 메소드들

메소드 설명
getOr404 ( mixed $id ) : Ojs\JournalBundle\Entity\Section Fetch a Section or throw an 404 Exception.

메소드 상세

deleteSectionAction() 공개 메소드

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

getOr404() 보호된 메소드

Fetch a Section or throw an 404 Exception.
protected getOr404 ( mixed $id ) : Ojs\JournalBundle\Entity\Section
$id mixed
리턴 Ojs\JournalBundle\Entity\Section

getSectionAction() 공개 메소드

Get single Section.
public getSectionAction ( integer $id ) : array
$id integer the Section id
리턴 array

getSectionsAction() 공개 메소드

List all Sections.
public getSectionsAction ( 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

newSectionAction() 공개 메소드

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

patchSectionAction() 공개 메소드

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

postSectionAction() 공개 메소드

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

putSectionAction() 공개 메소드

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