PHP Class Ojs\ApiBundle\Controller\Journal\JournalArticleCitationRestController

Inheritance: extends Ojs\ApiBundle\Controller\ApiController
Datei anzeigen Open project: ojs/ojs

Public Methods

Method Description
deleteCitationAction ( $id ) : Response
getCitationAction ( integer $id ) : array Get single ArticleCitation.
getCitationsAction ( FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all ArticleCitations.
newCitationAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new ArticleCitation.
patchCitationAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing article citation from the submitted data or create a new article citation at a specific location.
postCitationAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a ArticleCitation from the submitted data.
putCitationAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing ArticleCitation from the submitted data or create a new ArticleCitation at a specific location.

Protected Methods

Method Description
getOr404 ( mixed $id ) : Citation Fetch a ArticleCitation or throw an 404 Exception.

Method Details

deleteCitationAction() public method

public deleteCitationAction ( $id ) : Response
$id
return Symfony\Component\HttpFoundation\Response

getCitationAction() public method

Get single ArticleCitation.
public getCitationAction ( integer $id ) : array
$id integer the ArticleCitation id
return array

getCitationsAction() public method

List all ArticleCitations.
public getCitationsAction ( FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array
$paramFetcher FOS\RestBundle\Request\ParamFetcherInterface param fetcher service
return array

getOr404() protected method

Fetch a ArticleCitation or throw an 404 Exception.
protected getOr404 ( mixed $id ) : Citation
$id mixed
return Ojs\JournalBundle\Entity\Citation

newCitationAction() public method

Presents the form to use to create a new ArticleCitation.
public newCitationAction ( ) : Symfony\Component\Form\FormTypeInterface
return Symfony\Component\Form\FormTypeInterface

patchCitationAction() public method

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

postCitationAction() public method

Create a ArticleCitation from the submitted data.
public postCitationAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
return Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

putCitationAction() public method

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