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

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

공개 메소드들

메소드 설명
deleteArticletypeAction ( $id ) : Response
getArticletypeAction ( integer $id ) : array Get single ArticleType.
getArticletypesAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all ArticleTypes.
newArticletypeAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new ArticleType.
patchArticletypeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing article_type from the submitted data or create a new article_type at a specific location.
postArticletypeAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a ArticleType from the submitted data.
putArticletypeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing ArticleType from the submitted data or create a new ArticleType at a specific location.

보호된 메소드들

메소드 설명
getOr404 ( mixed $id ) : ArticleTypes Fetch a ArticleType or throw an 404 Exception.

메소드 상세

deleteArticletypeAction() 공개 메소드

public deleteArticletypeAction ( $id ) : Response
$id
리턴 Response

getArticletypeAction() 공개 메소드

Get single ArticleType.
public getArticletypeAction ( integer $id ) : array
$id integer the ArticleType id
리턴 array

getArticletypesAction() 공개 메소드

List all ArticleTypes.
public getArticletypesAction ( 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 ArticleType or throw an 404 Exception.
protected getOr404 ( mixed $id ) : ArticleTypes
$id mixed
리턴 Ojs\JournalBundle\Entity\ArticleTypes

newArticletypeAction() 공개 메소드

Presents the form to use to create a new ArticleType.
public newArticletypeAction ( ) : Symfony\Component\Form\FormTypeInterface
리턴 Symfony\Component\Form\FormTypeInterface

patchArticletypeAction() 공개 메소드

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

postArticletypeAction() 공개 메소드

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

putArticletypeAction() 공개 메소드

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