PHP Класс Ojs\ApiBundle\Controller\Journal\JournalIssueRestController

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

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

Метод Описание
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.

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

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

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

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

public deleteIssueAction ( $id ) : Response
$id
Результат Symfony\Component\HttpFoundation\Response

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

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
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

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

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

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

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
Результат array

getOr404() защищенный Метод

Fetch a Issue or throw an 404 Exception.
protected getOr404 ( mixed $id, boolean $normalize = false ) : Issue
$id mixed
$normalize boolean
Результат Ojs\JournalBundle\Entity\Issue

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

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

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

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
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

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

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
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

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

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
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View