PHP Class Ojs\ApiBundle\Controller\Admin\IndexRestController

Inheritance: extends FOS\RestBundle\Controller\FOSRestController
Datei anzeigen Open project: ojs/ojs

Public Methods

Method Description
deleteIndexesAction ( $id ) : Response
getIndexesAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Indexs.
getIndexsAction ( integer $id ) : array Get single Index.
newIndexesAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Index.
patchIndexesAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing index from the submitted data or create a new index at a specific location.
postIndexesAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Index from the submitted data.
putIndexesAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Index from the submitted data or create a new Index at a specific location.

Protected Methods

Method Description
getOr404 ( mixed $id ) : Ojs\JournalBundle\Entity\Index Fetch a Index or throw an 404 Exception.

Method Details

deleteIndexesAction() public method

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

getIndexesAction() public method

List all Indexs.
public getIndexesAction ( 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

getIndexsAction() public method

Get single Index.
public getIndexsAction ( integer $id ) : array
$id integer the Index id
return array

getOr404() protected method

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

newIndexesAction() public method

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

patchIndexesAction() public method

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

postIndexesAction() public method

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

putIndexesAction() public method

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