프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$mediaRepository | Sulu\Bundle\MediaBundle\Entity\MediaRepositoryInterface |
메소드 | 설명 | |
---|---|---|
__construct ( Doctrine\Common\Persistence\ObjectManager $em, Sulu\Bundle\TagBundle\Tag\TagManagerInterface $tagManager, Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface $mediaManager, |
||
addAddress ( |
adds an address to the entity. | |
delete ( ) : Closure | Deletes the contact for the given id. | |
findByFilters ( $filters, $page, $pageSize, $limit, $locale, $options = [] ) | ||
findById ( integer $id ) : mixed | null | Find a contact by it's id. | |
getAddressRelations ( $entity ) : mixed | Returns a collection of relations to get addresses. | |
getById ( $id, $locale ) : mixed | ||
getByIds ( $ids, $locale ) : mixed | Returns contact entities by ids. | |
getContact ( $contact, $locale ) : null | |
Returns an api entity for an doctrine entity. | |
getContactEntityName ( ) : string | Get contact entity name. | |
removeAddressRelation ( |
removes the address relation from a contact and also deletes the address if it has no more relations. | |
save ( array $data, integer | null $id = null, boolean $patch = false, boolean $flush = true ) : |
Creates a new contact for the given data. | |
setMainAccount ( |
||
setTitleOnContact ( $contact, $titleId ) |
메소드 | 설명 | |
---|---|---|
getApiObject ( |
Takes a contact entity and a locale and returns the api object. |
메소드 | 설명 | |
---|---|---|
getProperty ( array $data, string $key, string $default = null ) : string | null | Return property for key or given default value. | |
setAvatar ( |
Sets a media with a given id as the avatar of a given contact. | |
setMedias ( |
Sets the medias of the given contact to the given medias. |
public __construct ( Doctrine\Common\Persistence\ObjectManager $em, Sulu\Bundle\TagBundle\Tag\TagManagerInterface $tagManager, Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface $mediaManager, |
||
$em | Doctrine\Common\Persistence\ObjectManager | |
$tagManager | Sulu\Bundle\TagBundle\Tag\TagManagerInterface | |
$mediaManager | Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface | |
$accountRepository | ||
$contactTitleRepository | ContactTitleRepository | |
$contactRepository | ||
$mediaRepository | Sulu\Bundle\MediaBundle\Entity\MediaRepositoryInterface |
public addAddress ( |
||
$contact | The entity to add the address to | |
$address | The address to be added | |
$isMain | boolean | Defines if the address is the main Address of the contact |
리턴 |
public findByFilters ( $filters, $page, $pageSize, $limit, $locale, $options = [] ) |
public getAddressRelations ( $entity ) : mixed | ||
$entity | ||
리턴 | mixed |
protected getApiObject ( |
||
$contact | ||
$locale | string | |
리턴 |
public getContact ( $contact, $locale ) : null | |
||
$contact | ||
$locale | ||
리턴 | null | |
public getContactEntityName ( ) : string | ||
리턴 | string |
public removeAddressRelation ( |
||
$contact | ||
$contactAddress | ||
리턴 | mixed | void |
public setMainAccount ( |
||
$contact | ||
$data |