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

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

공개 메소드들

메소드 설명
deletePostAction ( $id ) : Response
getPostAction ( integer $id ) : array Get single Post.
getPostsAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Posts.
newPostAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Post.
patchPostAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing post from the submitted data or create a new post at a specific location.
postPostAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Post from the submitted data.
putPostAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Post from the submitted data or create a new Post at a specific location.

보호된 메소드들

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

메소드 상세

deletePostAction() 공개 메소드

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

getOr404() 보호된 메소드

Fetch a Post or throw an 404 Exception.
protected getOr404 ( mixed $id ) : AdminPost
$id mixed
리턴 Ojs\AdminBundle\Entity\AdminPost

getPostAction() 공개 메소드

Get single Post.
public getPostAction ( integer $id ) : array
$id integer the Post id
리턴 array

getPostsAction() 공개 메소드

List all Posts.
public getPostsAction ( 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

newPostAction() 공개 메소드

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

patchPostAction() 공개 메소드

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

postPostAction() 공개 메소드

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

putPostAction() 공개 메소드

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