PHP Class Ojs\ApiBundle\Controller\Admin\PublisherManagerRestController

Inheritance: extends FOS\RestBundle\Controller\FOSRestController
Exibir arquivo Open project: ojs/ojs

Public Methods

Method Description
deletePublishermanagerAction ( $id ) : Response
getPublishermanagerAction ( integer $id ) : array Get single PublisherManager.
getPublishermanagersAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all PublisherManager.
newPublishermanagerAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new PublisherManager.
patchPublishermanagerAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing publisher_manager from the submitted data or create a new publisher_manager at a specific location.
postPublishermanagerAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a PublisherManager from the submitted data.
putPublishermanagerAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing PublisherManager from the submitted data or create a new PublisherManager at a specific location.

Protected Methods

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

Method Details

deletePublishermanagerAction() public method

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

getOr404() protected method

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

getPublishermanagerAction() public method

Get single PublisherManager.
public getPublishermanagerAction ( integer $id ) : array
$id integer the PublisherManager id
return array

getPublishermanagersAction() public method

List all PublisherManager.
public getPublishermanagersAction ( 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

newPublishermanagerAction() public method

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

patchPublishermanagerAction() public method

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

postPublishermanagerAction() public method

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

putPublishermanagerAction() public method

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