PHP Class Ojs\ApiBundle\Controller\Journal\JournalThemeRestController

Inheritance: extends Ojs\ApiBundle\Controller\ApiController
Mostra file Open project: ojs/ojs

Public Methods

Method Description
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.

Protected Methods

Method Description
getOr404 ( mixed $id ) : JournalTheme Fetch a JournalTheme or throw an 404 Exception.

Method Details

deleteThemeAction() public method

public deleteThemeAction ( $id ) : Response
$id
return Response

getOr404() protected method

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

getThemeAction() public method

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

getThemesAction() public method

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
return array

newThemeAction() public method

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

patchThemeAction() public method

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
return Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

postThemeAction() public method

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
return Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

putThemeAction() public method

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
return Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View