PHP Class Ojs\ApiBundle\Controller\Admin\InstitutionRestController

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

Méthodes publiques

Méthode Description
deleteInstitutionAction ( $id ) : Response
getInstitutionAction ( integer $id ) : array Get single Institution.
getInstitutionsAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Institutions.
newInstitutionAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Institution.
patchInstitutionAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing institution from the submitted data or create a new institution at a specific location.
postInstitutionAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Institution from the submitted data.
putInstitutionAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Institution from the submitted data or create a new Institution at a specific location.

Méthodes protégées

Méthode Description
getOr404 ( mixed $id ) : Institution Fetch a Institution or throw an 404 Exception.

Method Details

deleteInstitutionAction() public méthode

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

getInstitutionAction() public méthode

Get single Institution.
public getInstitutionAction ( integer $id ) : array
$id integer the Institution id
Résultat array

getInstitutionsAction() public méthode

List all Institutions.
public getInstitutionsAction ( 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

getOr404() protected méthode

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

newInstitutionAction() public méthode

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

patchInstitutionAction() public méthode

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

postInstitutionAction() public méthode

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

putInstitutionAction() public méthode

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