PHP Класс Sulu\Bundle\ContactBundle\Controller\ContactTitleController

Наследование: extends Sulu\Component\Rest\RestController, implements FOS\RestBundle\Routing\ClassResourceInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$entityKey
$entityName

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

Метод Описание
cgetAction ( ) : Response lists all contact titles optional parameter 'flat' calls listAction.
deleteAction ( $id ) : Response Delete a contact title for the given id.
getAction ( $id ) : Response Shows a single contact title for the given id.
patchAction ( Request $request ) : Response Add or update a bunch of contact titles.
postAction ( Request $request ) : Response Creates a new contact title.
putAction ( Request $request, integer $id ) : Response Edits the existing contact title for the given id.

Приватные методы

Метод Описание
addAndUpdateTitles ( $item ) : ContactTitle Helper function for patch action.

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

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

lists all contact titles optional parameter 'flat' calls listAction.
public cgetAction ( ) : Response
Результат Symfony\Component\HttpFoundation\Response

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

Delete a contact title for the given id.
public deleteAction ( $id ) : Response
$id
Результат Symfony\Component\HttpFoundation\Response

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

Shows a single contact title for the given id.
public getAction ( $id ) : Response
$id
Результат Symfony\Component\HttpFoundation\Response

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

Add or update a bunch of contact titles.
public patchAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\Response

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

Creates a new contact title.
public postAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\Response

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

Edits the existing contact title for the given id.
public putAction ( Request $request, integer $id ) : Response
$request Symfony\Component\HttpFoundation\Request
$id integer The id of the title to update
Результат Symfony\Component\HttpFoundation\Response

Описание свойств

$entityKey защищенное статическое свойство

protected static $entityKey

$entityName защищенное статическое свойство

protected static $entityName