PHP Class Ojs\ApiBundle\Controller\Admin\LangRestController

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

Méthodes publiques

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

Méthodes protégées

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

Method Details

deleteLangAction() public méthode

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

getLangAction() public méthode

Get single Lang.
public getLangAction ( integer $id ) : array
$id integer the Lang id
Résultat array

getLangsAction() public méthode

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

getOr404() protected méthode

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

newLangAction() public méthode

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

patchLangAction() public méthode

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

postLangAction() public méthode

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

putLangAction() public méthode

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