PHP Класс Ojs\ApiBundle\Controller\Admin\InstitutionRestController

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

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

Метод Описание
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.

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

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

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

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

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

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

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

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

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
Результат array

getOr404() защищенный Метод

Fetch a Institution or throw an 404 Exception.
protected getOr404 ( mixed $id ) : Institution
$id mixed
Результат Ojs\JournalBundle\Entity\Institution

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

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

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

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
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

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

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
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

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

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
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View