PHP Class Ojs\ApiBundle\Controller\Admin\PublisherTypeRestController

Inheritance: extends FOS\RestBundle\Controller\FOSRestController
Datei anzeigen Open project: ojs/ojs

Public Methods

Method Description
deletePublishertypeAction ( $id ) : Response
getPublishertypeAction ( integer $id ) : array Get single PublisherType.
getPublishertypesAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all PublisherTypes.
newPublishertypeAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new PublisherType.
patchPublishertypeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing publisherType from the submitted data or create a new publisherType at a specific location.
postPublishertypeAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a PublisherType from the submitted data.
putPublishertypeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing PublisherType from the submitted data or create a new PublisherType at a specific location.

Protected Methods

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

Method Details

deletePublishertypeAction() public method

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

getOr404() protected method

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

getPublishertypeAction() public method

Get single PublisherType.
public getPublishertypeAction ( integer $id ) : array
$id integer the PublisherType id
return array

getPublishertypesAction() public method

List all PublisherTypes.
public getPublishertypesAction ( 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

newPublishertypeAction() public method

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

patchPublishertypeAction() public method

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

postPublishertypeAction() public method

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

putPublishertypeAction() public method

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