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

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

공개 메소드들

메소드 설명
deleteThemeAction ( $id ) : Response
getThemeAction ( integer $id ) : array Get single JournalTheme.
getThemesAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all JournalThemes.
newThemeAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new JournalTheme.
patchThemeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing journal_theme from the submitted data or create a new journal_theme at a specific location.
postThemeAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a JournalTheme from the submitted data.
putThemeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing JournalTheme from the submitted data or create a new JournalTheme at a specific location.

보호된 메소드들

메소드 설명
getOr404 ( mixed $id ) : JournalTheme Fetch a JournalTheme or throw an 404 Exception.

메소드 상세

deleteThemeAction() 공개 메소드

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

getOr404() 보호된 메소드

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

getThemeAction() 공개 메소드

Get single JournalTheme.
public getThemeAction ( integer $id ) : array
$id integer the JournalTheme id
리턴 array

getThemesAction() 공개 메소드

List all JournalThemes.
public getThemesAction ( 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

newThemeAction() 공개 메소드

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

patchThemeAction() 공개 메소드

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

postThemeAction() 공개 메소드

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

putThemeAction() 공개 메소드

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