PHP Класс Ojs\ApiBundle\Controller\Admin\PeriodRestController

Наследование: extends FOS\RestBundle\Controller\FOSRestController
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
getOr404 ( mixed $id ) : Period Fetch a Period or throw an 404 Exception.

Описание методов

deletePeriodAction() публичный Метод

public deletePeriodAction ( $id ) : Response
$id
Результат Response

getOr404() защищенный Метод

Fetch a Period or throw an 404 Exception.
protected getOr404 ( mixed $id ) : Period
$id mixed
Результат Ojs\JournalBundle\Entity\Period

getPeriodAction() публичный Метод

Get single Period.
public getPeriodAction ( integer $id ) : array
$id integer the Period id
Результат array

getPeriodsAction() публичный Метод

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
Результат array

newPeriodAction() публичный Метод

Presents the form to use to create a new Period.
public newPeriodAction ( ) : Symfony\Component\Form\FormTypeInterface
Результат Symfony\Component\Form\FormTypeInterface

patchPeriodAction() публичный Метод

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
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

postPeriodAction() публичный Метод

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
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

putPeriodAction() публичный Метод

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
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View