PHP Class Ojs\ApiBundle\Controller\Journal\JournalArticleAuthorRestController

Inheritance: extends Ojs\ApiBundle\Controller\ApiController
Afficher le fichier Open project: ojs/ojs

Méthodes publiques

Méthode 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.

Méthodes protégées

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

Method Details

deleteAuthorAction() public méthode

public deleteAuthorAction ( $id ) : Response
$id
Résultat Symfony\Component\HttpFoundation\Response

getAuthorAction() public méthode

Get single ArticleAuthor.
public getAuthorAction ( integer $id ) : array
$id integer the ArticleAuthor id
Résultat array

getAuthorsAction() public méthode

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

getOr404() protected méthode

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

newAuthorAction() public méthode

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

patchAuthorAction() public méthode

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

postAuthorAction() public méthode

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

putAuthorAction() public méthode

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