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

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

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

Метод Описание
deletePageAction ( $id ) : Response
getPageAction ( integer $id ) : array Get single Page.
getPagesAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Pages.
newPageAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Page.
patchPageAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing page from the submitted data or create a new page at a specific location.
postPageAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Page from the submitted data.
putPageAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Page from the submitted data or create a new Page at a specific location.

Защищенные методы

Метод Описание
getOr404 ( mixed $id ) : AdminPage Fetch a Page or throw an 404 Exception.

Описание методов

deletePageAction() публичный Метод

public deletePageAction ( $id ) : Response
$id
Результат Response

getOr404() защищенный Метод

Fetch a Page or throw an 404 Exception.
protected getOr404 ( mixed $id ) : AdminPage
$id mixed
Результат Ojs\AdminBundle\Entity\AdminPage

getPageAction() публичный Метод

Get single Page.
public getPageAction ( integer $id ) : array
$id integer the Page id
Результат array

getPagesAction() публичный Метод

List all Pages.
public getPagesAction ( 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

newPageAction() публичный Метод

Presents the form to use to create a new Page.
public newPageAction ( ) : Symfony\Component\Form\FormTypeInterface
Результат Symfony\Component\Form\FormTypeInterface

patchPageAction() публичный Метод

Update existing page from the submitted data or create a new page at a specific location.
public patchPageAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
$id integer the page id
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

postPageAction() публичный Метод

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

putPageAction() публичный Метод

Update existing Page from the submitted data or create a new Page at a specific location.
public putPageAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
$id integer the Page id
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View