PHP 클래스 Sulu\Bundle\ContactBundle\Controller\ContactController

상속: extends Sulu\Component\Rest\RestController, implements FOS\RestBundle\Routing\ClassResourceInterface, implements Sulu\Component\Security\SecuredControllerInterface
파일 보기 프로젝트 열기: sulu/sulu

보호된 프로퍼티들

프로퍼티 타입 설명
$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