PHP Class Ojs\ApiBundle\Controller\Admin\ContactRestController

Inheritance: extends FOS\RestBundle\Controller\FOSRestController
Afficher le fichier Open project: ojs/ojs

Méthodes publiques

Méthode Description
deleteContactAction ( $id ) : Response
getContactAction ( integer $id ) : array Get single Contact.
getContactsAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all Contacts.
newContactAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new Contact.
patchContactAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing contact from the submitted data or create a new contact at a specific location.
postContactAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Create a Contact from the submitted data.
putContactAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View Update existing Contact from the submitted data or create a new Contact at a specific location.

Méthodes protégées

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

Method Details

deleteContactAction() public méthode

public deleteContactAction ( $id ) : Response
$id
Résultat Response

getContactAction() public méthode

Get single Contact.
public getContactAction ( integer $id ) : array
$id integer the Contact id
Résultat array

getContactsAction() public méthode

List all Contacts.
public getContactsAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array
$request Symfony\Component\HttpFoundation\Request the request object
$paramFetcher FOS\RestBundle\Request\ParamFetcherInterface param fetcher service
Résultat array

getOr404() protected méthode

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

newContactAction() public méthode

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

patchContactAction() public méthode

Update existing contact from the submitted data or create a new contact at a specific location.
public patchContactAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
$id integer the contact id
Résultat Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

postContactAction() public méthode

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

putContactAction() public méthode

Update existing Contact from the submitted data or create a new Contact at a specific location.
public putContactAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View
$request Symfony\Component\HttpFoundation\Request the request object
$id integer the Contact id
Résultat Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View