PHP 클래스 Ojs\ApiBundle\Controller\Admin\LangRestController

상속: extends FOS\RestBundle\Controller\FOSRestController
파일 보기 프로젝트 열기: ojs/ojs

공개 메소드들

메소드 설명
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