PHP Класс Ojs\ApiBundle\Controller\Journal\JournalBoardRestController

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

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

Метод Описание
deleteBoardAction ( $id ) : Response
getBoardAction ( integer $id ) : array Get single Board.
getBoardsAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Boards.
newBoardAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Board.
patchBoardAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing journal_board from the submitted data or create a new journal_board at a specific location.
postBoardAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Board from the submitted data.
putBoardAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Board from the submitted data or create a new Board at a specific location.

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

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

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

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

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

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

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

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

List all Boards.
public getBoardsAction ( 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 Board or throw an 404 Exception.
protected getOr404 ( mixed $id ) : Board
$id mixed
Результат Ojs\JournalBundle\Entity\Board

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

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

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

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

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

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

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

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