PHP Class Ojs\ApiBundle\Controller\Admin\PublisherRestController

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

Public Methods

Method Description
deletePublisherAction ( $id ) : Response
getPublisherAction ( integer $id ) : array Get single Publisher.
getPublishersAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Publishers.
newPublisherAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Publisher.
patchPublisherAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing publisher from the submitted data or create a new publisher at a specific location.
postPublisherAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Publisher from the submitted data.
putPublisherAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Publisher from the submitted data or create a new Publisher at a specific location.

Protected Methods

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

Method Details

deletePublisherAction() public method

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

getOr404() protected method

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

getPublisherAction() public method

Get single Publisher.
public getPublisherAction ( integer $id ) : array
$id integer the Publisher id
return array

getPublishersAction() public method

List all Publishers.
public getPublishersAction ( 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

newPublisherAction() public method

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

patchPublisherAction() public method

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

postPublisherAction() public method

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

putPublisherAction() public method

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