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

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

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

Метод Описание
deleteContacttypeAction ( $id ) : Response
getContacttypeAction ( integer $id ) : array Get single Contact Type.
getContacttypesAction ( Request $request, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : array List all contact types.
newContacttypeAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new contact type.
patchContacttypeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\View\View Update existing contact type from the submitted data or create a new contact type at a specific location.
postContacttypeAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\View\View Create a Contact Type from the submitted data.
putContacttypeAction ( Request $request, integer $id ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\View\View Update existing contact type from the submitted data or create a new contact type at a specific location.

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

Метод Описание
getOr404 ( mixed $id ) : Ojs\ApiBundle\Model\ContactTypesInterface Fetch a Contact Type or throw an 404 Exception.

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

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

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

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

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

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

List all contact types.
public getContacttypesAction ( 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 Type or throw an 404 Exception.
protected getOr404 ( mixed $id ) : Ojs\ApiBundle\Model\ContactTypesInterface
$id mixed
Результат Ojs\ApiBundle\Model\ContactTypesInterface

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

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

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

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

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

Create a Contact Type from the submitted data.
public postContacttypeAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\View\View
$request Symfony\Component\HttpFoundation\Request the request object
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\View\View

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

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