PHP Class Ojs\ApiBundle\Controller\Admin\JournalRestController

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

Méthodes publiques

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

Méthodes protégées

Méthode Description
getOr404 ( mixed $id, boolean $normalize = false ) : Journal Fetch a Journal or throw an 404 Exception.

Method Details

deleteJournalAction() public méthode

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

getJournalAction() public méthode

Get single Journal.
public getJournalAction ( integer $id ) : array
$id integer the Journal id
Résultat array

getJournalsAction() public méthode

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

getOr404() protected méthode

Fetch a Journal or throw an 404 Exception.
protected getOr404 ( mixed $id, boolean $normalize = false ) : Journal
$id mixed
$normalize boolean
Résultat Ojs\JournalBundle\Entity\Journal

newJournalAction() public méthode

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

patchJournalAction() public méthode

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

postJournalAction() public méthode

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

putJournalAction() public méthode

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