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

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

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

Метод Описание
deleteLangAction ( $id ) : Response
getLangAction ( integer $id ) : array Get single Lang.
getLangsAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Langs.
newLangAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Lang.
patchLangAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing lang from the submitted data or create a new lang at a specific location.
postLangAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Lang from the submitted data.
putLangAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Lang from the submitted data or create a new Lang at a specific location.

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

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

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

deleteLangAction() публичный метод

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

getLangAction() публичный метод

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

getLangsAction() публичный метод

List all Langs.
public getLangsAction ( 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

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

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

newLangAction() публичный метод

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

patchLangAction() публичный метод

Update existing lang from the submitted data or create a new lang at a specific location.
public patchLangAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
$id integer the lang id
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

postLangAction() публичный метод

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

putLangAction() публичный метод

Update existing Lang from the submitted data or create a new Lang at a specific location.
public putLangAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
$id integer the Lang id
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View