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

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

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

Метод Описание
deleteJournalAction ( $id ) : Response
getJournalAction ( integer $id ) : array Get single Journal.
getJournalsAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Journals.
newJournalAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Journal.
patchJournalAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing journal from the submitted data or create a new journal at a specific location.
postJournalAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Journal from the submitted data.
putJournalAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Journal from the submitted data or create a new Journal at a specific location.

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

Метод Описание
getOr404 ( mixed $id, boolean $normalize = false ) : Journal Fetch a Journal or throw an 404 Exception.

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

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

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

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

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

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

List all Journals.
public getJournalsAction ( 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 Journal or throw an 404 Exception.
protected getOr404 ( mixed $id, boolean $normalize = false ) : Journal
$id mixed
$normalize boolean
Результат Ojs\JournalBundle\Entity\Journal

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

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

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

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

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

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

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

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