PHP Class Ojs\ApiBundle\Controller\Admin\IndexRestController

Inheritance: extends FOS\RestBundle\Controller\FOSRestController
Afficher le fichier Open project: ojs/ojs

Méthodes publiques

Méthode 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.

Méthodes protégées

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

Method Details

deleteIndexesAction() public méthode

public deleteIndexesAction ( $id ) : Response
$id
Résultat Response

getIndexesAction() public méthode

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
Résultat array

getIndexsAction() public méthode

Get single Index.
public getIndexsAction ( integer $id ) : array
$id integer the Index id
Résultat array

getOr404() protected méthode

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

newIndexesAction() public méthode

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

patchIndexesAction() public méthode

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

postIndexesAction() public méthode

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

putIndexesAction() public méthode

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