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

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

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

Метод Описание
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