PHP Class Ojs\ApiBundle\Controller\Journal\JournalThemeRestController

Inheritance: extends Ojs\ApiBundle\Controller\ApiController
Afficher le fichier Open project: ojs/ojs

Méthodes publiques

Méthode Description
deleteThemeAction ( $id ) : Response
getThemeAction ( integer $id ) : array Get single JournalTheme.
getThemesAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all JournalThemes.
newThemeAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new JournalTheme.
patchThemeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing journal_theme from the submitted data or create a new journal_theme at a specific location.
postThemeAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a JournalTheme from the submitted data.
putThemeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing JournalTheme from the submitted data or create a new JournalTheme at a specific location.

Méthodes protégées

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

Method Details

deleteThemeAction() public méthode

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

getOr404() protected méthode

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

getThemeAction() public méthode

Get single JournalTheme.
public getThemeAction ( integer $id ) : array
$id integer the JournalTheme id
Résultat array

getThemesAction() public méthode

List all JournalThemes.
public getThemesAction ( 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

newThemeAction() public méthode

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

patchThemeAction() public méthode

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

postThemeAction() public méthode

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

putThemeAction() public méthode

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