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

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

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

Метод Описание
deleteAuthorAction ( $id ) : Response
getAuthorAction ( integer $id ) : array Get single ArticleAuthor.
getAuthorsAction ( FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all ArticleAuthors.
newAuthorAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new ArticleAuthor.
patchAuthorAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing article author from the submitted data or create a new article author at a specific location.
postAuthorAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a ArticleAuthor from the submitted data.
putAuthorAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing ArticleAuthor from the submitted data or create a new ArticleAuthor at a specific location.

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

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

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

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

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

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

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

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

List all ArticleAuthors.
public getAuthorsAction ( FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array
$paramFetcher FOS\RestBundle\Request\ParamFetcherInterface param fetcher service
Результат array

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

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

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

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

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

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

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

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

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

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