PHP Class Ojs\ApiBundle\Controller\Journal\JournalBoardRestController

Inheritance: extends Ojs\ApiBundle\Controller\ApiController
Show file Open project: ojs/ojs

Public Methods

Method Description
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.

Protected Methods

Method Description
getOr404 ( mixed $id ) : Board Fetch a Board or throw an 404 Exception.

Method Details

deleteBoardAction() public method

public deleteBoardAction ( $id ) : Response
$id
return Response

getBoardAction() public method

Get single Board.
public getBoardAction ( integer $id ) : array
$id integer the Board id
return array

getBoardsAction() public method

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
return array

getOr404() protected method

Fetch a Board or throw an 404 Exception.
protected getOr404 ( mixed $id ) : Board
$id mixed
return Ojs\JournalBundle\Entity\Board

newBoardAction() public method

Presents the form to use to create a new Board.
public newBoardAction ( ) : Symfony\Component\Form\FormTypeInterface
return Symfony\Component\Form\FormTypeInterface

patchBoardAction() public method

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
return Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

postBoardAction() public method

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
return Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

putBoardAction() public method

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
return Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View