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

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

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

Метод Описание
deletePublisherAction ( $id ) : Response
getPublisherAction ( integer $id ) : array Get single Publisher.
getPublishersAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Publishers.
newPublisherAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Publisher.
patchPublisherAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing publisher from the submitted data or create a new publisher at a specific location.
postPublisherAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Publisher from the submitted data.
putPublisherAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Publisher from the submitted data or create a new Publisher at a specific location.

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

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

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

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

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

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

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

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

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

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

List all Publishers.
public getPublishersAction ( 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

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

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

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

Update existing publisher from the submitted data or create a new publisher at a specific location.
public patchPublisherAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
$id integer the publisher id
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

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

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

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

Update existing Publisher from the submitted data or create a new Publisher at a specific location.
public putPublisherAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
$id integer the Publisher id
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View