PHP Class Ojs\ApiBundle\Controller\Journal\JournalArticleAuthorRestController

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

Public Methods

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

Protected Methods

Method Description
getOr404 ( mixed $id ) : ArticleAuthor Fetch a ArticleAuthor or throw an 404 Exception.

Method Details

deleteAuthorAction() public method

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

getAuthorAction() public method

Get single ArticleAuthor.
public getAuthorAction ( integer $id ) : array
$id integer the ArticleAuthor id
return array

getAuthorsAction() public method

List all ArticleAuthors.
public getAuthorsAction ( FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array
$paramFetcher FOS\RestBundle\Request\ParamFetcherInterface param fetcher service
return array

getOr404() protected method

Fetch a ArticleAuthor or throw an 404 Exception.
protected getOr404 ( mixed $id ) : ArticleAuthor
$id mixed
return Ojs\JournalBundle\Entity\ArticleAuthor

newAuthorAction() public method

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

patchAuthorAction() public method

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

postAuthorAction() public method

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

putAuthorAction() public method

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