PHP Class Ojs\ApiBundle\Controller\Admin\PublisherThemeRestController

Inheritance: extends FOS\RestBundle\Controller\FOSRestController
Show file Open project: ojs/ojs

Public Methods

Method Description
deletePublisherthemeAction ( $id ) : Response
getPublisherthemeAction ( integer $id ) : array Get single PublisherTheme.
getPublisherthemesAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all PublisherTheme.
newPublisherthemeAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new PublisherTheme.
patchPublisherthemeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing publisher_theme from the submitted data or create a new publisher_theme at a specific location.
postPublisherthemeAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a PublisherTheme from the submitted data.
putPublisherthemeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing PublisherTheme from the submitted data or create a new PublisherTheme at a specific location.

Protected Methods

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

Method Details

deletePublisherthemeAction() public method

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

getOr404() protected method

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

getPublisherthemeAction() public method

Get single PublisherTheme.
public getPublisherthemeAction ( integer $id ) : array
$id integer the PublisherTheme id
return array

getPublisherthemesAction() public method

List all PublisherTheme.
public getPublisherthemesAction ( 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

newPublisherthemeAction() public method

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

patchPublisherthemeAction() public method

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

postPublisherthemeAction() public method

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

putPublisherthemeAction() public method

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