PHP Class Ojs\ApiBundle\Controller\Admin\PublisherRestController

Inheritance: extends FOS\RestBundle\Controller\FOSRestController
Afficher le fichier Open project: ojs/ojs

Méthodes publiques

Méthode 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.

Méthodes protégées

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

Method Details

deletePublisherAction() public méthode

public deletePublisherAction ( $id ) : Response
$id
Résultat Response

getOr404() protected méthode

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

getPublisherAction() public méthode

Get single Publisher.
public getPublisherAction ( integer $id ) : array
$id integer the Publisher id
Résultat array

getPublishersAction() public méthode

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
Résultat array

newPublisherAction() public méthode

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

patchPublisherAction() public méthode

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

postPublisherAction() public méthode

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

putPublisherAction() public méthode

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