PHP Класс Ojs\ApiBundle\Controller\Admin\ArticleTypeRestController

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

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

Метод Описание
deleteArticletypeAction ( $id ) : Response
getArticletypeAction ( integer $id ) : array Get single ArticleType.
getArticletypesAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all ArticleTypes.
newArticletypeAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new ArticleType.
patchArticletypeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing article_type from the submitted data or create a new article_type at a specific location.
postArticletypeAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a ArticleType from the submitted data.
putArticletypeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing ArticleType from the submitted data or create a new ArticleType at a specific location.

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

Метод Описание
getOr404 ( mixed $id ) : ArticleTypes Fetch a ArticleType or throw an 404 Exception.

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

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

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

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

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

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

List all ArticleTypes.
public getArticletypesAction ( 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 ArticleType or throw an 404 Exception.
protected getOr404 ( mixed $id ) : ArticleTypes
$id mixed
Результат Ojs\JournalBundle\Entity\ArticleTypes

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

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

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

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

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

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

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

Update existing ArticleType from the submitted data or create a new ArticleType at a specific location.
public putArticletypeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
$id integer the ArticleType id
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View