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

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

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

Метод Описание
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.

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

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

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

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

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

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

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

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

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
Результат array

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

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

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

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

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

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
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

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

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
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View

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

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
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View