PHP Class Ojs\ApiBundle\Controller\Admin\PublisherThemeRestController

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

Méthodes publiques

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

Méthodes protégées

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

Method Details

deletePublisherthemeAction() public méthode

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

getOr404() protected méthode

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

getPublisherthemeAction() public méthode

Get single PublisherTheme.
public getPublisherthemeAction ( integer $id ) : array
$id integer the PublisherTheme id
Résultat array

getPublisherthemesAction() public méthode

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

newPublisherthemeAction() public méthode

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

patchPublisherthemeAction() public méthode

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

postPublisherthemeAction() public méthode

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

putPublisherthemeAction() public méthode

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