PHP Class Ojs\ApiBundle\Controller\Admin\PeriodRestController

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

Méthodes publiques

Méthode Description
deletePeriodAction ( $id ) : Response
getPeriodAction ( integer $id ) : array Get single Period.
getPeriodsAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Periods.
newPeriodAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Period.
patchPeriodAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing period from the submitted data or create a new period at a specific location.
postPeriodAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Period from the submitted data.
putPeriodAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Period from the submitted data or create a new Period at a specific location.

Méthodes protégées

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

Method Details

deletePeriodAction() public méthode

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

getOr404() protected méthode

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

getPeriodAction() public méthode

Get single Period.
public getPeriodAction ( integer $id ) : array
$id integer the Period id
Résultat array

getPeriodsAction() public méthode

List all Periods.
public getPeriodsAction ( 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

newPeriodAction() public méthode

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

patchPeriodAction() public méthode

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

postPeriodAction() public méthode

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

putPeriodAction() public méthode

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