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

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

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

Метод Описание
deleteArticleAction ( $id ) : Response
getArticleAction ( integer $id ) : array Get single Article.
getArticlesAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Articles.
newArticleAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Article.
patchArticleAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing journal_article from the submitted data or create a new journal_article at a specific location.
postArticleAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Article from the submitted data.
putArticleAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Article from the submitted data or create a new Article at a specific location.

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

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

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

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

public deleteArticleAction ( $id ) : Response
$id
Результат Response

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

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

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

List all Articles.
public getArticlesAction ( 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 Article or throw an 404 Exception.
protected getOr404 ( mixed $id, boolean $normalize = false ) : Article
$id mixed
$normalize boolean
Результат Ojs\JournalBundle\Entity\Article

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

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

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

Update existing journal_article from the submitted data or create a new journal_article at a specific location.
public patchArticleAction ( 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_article id
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

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

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

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

Update existing Article from the submitted data or create a new Article at a specific location.
public putArticleAction ( 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 id
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View