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

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

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

Свойство Тип Описание
$accountContactEntityName
$accountContactFieldDescriptors
$basePath string
$bundlePrefix
$contactSerializationGroups serialization groups for contact
$entityKey
$fieldDescriptors Sulu\Component\Rest\ListBuilder\Doctrine\FieldDescriptor\DoctrineFieldDescriptor[]
$positionEntityName

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

Метод Описание
cgetAction ( Request $request ) : Response lists all contacts optional parameter 'flat' calls listAction.
deleteAction ( integer $id ) : Response Deletes a Contact with the given ID from database.
fieldsAction ( Request $request ) : Response returns all fields that can be used by list.
getAction ( $id ) : Response Shows the contact with the given Id.
getSecurityContext ( )
patchAction ( $id, Request $request ) : Response Partially update an existing contact.
postAction ( Request $request ) : Response Creates a new contact.
putAction ( $id, Request $request ) : Response

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

Метод Описание
getAccountContactFieldDescriptors ( )
getContactManager ( ) : ContactManager
getContactsByUserSystem ( ) Returns a list of contacts which have a user in the sulu system.
getFieldDescriptors ( )
getRestHelper ( ) : Sulu\Component\Rest\RestHelperInterface

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

Метод Описание
addAvatars ( array $contacts, string $locale ) : array Takes an array of contacts and resets the avatar containing the media id with the actual urls to the avatars thumbnail.
checkArguments ( Request $request ) https://github.com/sulu-io/sulu/issues/1136
getComparator ( ) : Sulu\Bundle\ContactBundle\Util\IndexComparatorInterface
getList ( Request $request, string $locale ) : ListRepresentation Returns list for cget.
initFieldDescriptors ( )
prepareListResponse ( Request $request, DoctrineListBuilder $listBuilder, string $locale ) : array Prepare list response.

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

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

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

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

Deletes a Contact with the given ID from database.
public deleteAction ( integer $id ) : Response
$id integer
Результат Symfony\Component\HttpFoundation\Response

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

returns all fields that can be used by list.
public fieldsAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\Response

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

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

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

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

protected getContactManager ( ) : ContactManager
Результат Sulu\Bundle\ContactBundle\Contact\ContactManager

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

Returns a list of contacts which have a user in the sulu system.
protected getContactsByUserSystem ( )

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

protected getFieldDescriptors ( )

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

protected getRestHelper ( ) : Sulu\Component\Rest\RestHelperInterface
Результат Sulu\Component\Rest\RestHelperInterface

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

public getSecurityContext ( )

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

Partially update an existing contact.
public patchAction ( $id, Request $request ) : Response
$id
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\Response

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

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

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

public putAction ( $id, Request $request ) : Response
$id
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\Response

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

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

protected static $accountContactEntityName

$accountContactFieldDescriptors защищенное свойство

protected $accountContactFieldDescriptors

$basePath защищенное свойство

protected string $basePath
Результат string

$bundlePrefix защищенное свойство

protected $bundlePrefix

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

serialization groups for contact
protected static $contactSerializationGroups

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

protected static $entityKey

$fieldDescriptors защищенное свойство

protected DoctrineFieldDescriptor[],Sulu\Component\Rest\ListBuilder\Doctrine\FieldDescriptor $fieldDescriptors
Результат Sulu\Component\Rest\ListBuilder\Doctrine\FieldDescriptor\DoctrineFieldDescriptor[]

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

protected static $positionEntityName