PHP Class Ojs\ApiBundle\Controller\Journal\JournalIssueRestController

Inheritance: extends Ojs\ApiBundle\Controller\ApiController
Show file Open project: ojs/ojs

Public Methods

Method 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.

Protected Methods

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

Method Details

deleteIssueAction() public method

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

getAddArticleAction() public method

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

getIssueAction() public method

Get single Issue.
public getIssueAction ( integer $id ) : array
$id integer the Issue id
return array

getIssuesAction() public method

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
return array

getOr404() protected method

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

newIssueAction() public method

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

patchIssueAction() public method

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

postIssueAction() public method

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

putIssueAction() public method

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