PHP Class Ojs\ApiBundle\Controller\Journal\JournalIssueRestController

Inheritance: extends Ojs\ApiBundle\Controller\ApiController
Afficher le fichier Open project: ojs/ojs

Méthodes publiques

Méthode Description
deleteIssueAction ( $id ) : Response
getAddArticleAction ( Request $request, integer $issueId, integer $articleId, integer $sectionId ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Add article to issue
getIssueAction ( integer $id ) : array Get single Issue.
getIssuesAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Issues.
newIssueAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Issue.
patchIssueAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing journal_issue from the submitted data or create a new journal_issue at a specific location.
postIssueAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Issue from the submitted data.
putIssueAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Issue from the submitted data or create a new Issue at a specific location.

Méthodes protégées

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

Method Details

deleteIssueAction() public méthode

public deleteIssueAction ( $id ) : Response
$id
Résultat Symfony\Component\HttpFoundation\Response

getAddArticleAction() public méthode

Add article to issue
public getAddArticleAction ( Request $request, integer $issueId, integer $articleId, integer $sectionId ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
$issueId integer the Issue id
$articleId integer the Article id
$sectionId integer the Section id
Résultat Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

getIssueAction() public méthode

Get single Issue.
public getIssueAction ( integer $id ) : array
$id integer the Issue id
Résultat array

getIssuesAction() public méthode

List all Issues.
public getIssuesAction ( 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 Issue or throw an 404 Exception.
protected getOr404 ( mixed $id, boolean $normalize = false ) : Issue
$id mixed
$normalize boolean
Résultat Ojs\JournalBundle\Entity\Issue

newIssueAction() public méthode

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

patchIssueAction() public méthode

Update existing journal_issue from the submitted data or create a new journal_issue at a specific location.
public patchIssueAction ( 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_issue id
Résultat Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

postIssueAction() public méthode

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

putIssueAction() public méthode

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