PHP Интерфейс Sulu\Bundle\ContactBundle\Contact\ContactManagerInterface

Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
addAddress ( $entity, Address $address, boolean $isMain ) adds an address to the entity.
getAddressRelations ( $entity ) : mixed Returns a collection of relations to get addresses.
getById ( $id, $locale ) : mixed Returns an api entity.
getByIds ( $ids, $locale ) : mixed Returns api entities.
removeAddressRelation ( $entity, $address ) : mixed removes the address relation from a contact and also deletes the address if it has no more relations.
setMainEmail ( $entity ) : mixed sets main email, based on emails that are set on entity.
setMainFax ( $entity ) : mixed sets main fax, based on faxes that are set on entity.
setMainForCollection ( $arrayCollection ) sets the first element to main, if none is set.
setMainPhone ( $entity ) : mixed sets main phone, based on phones that are set on entity.
setMainUrl ( $entity ) : mixed sets main url, based on urls that are set on entity.
unsetMain ( $arrayCollection ) : boolean unsets main of all elements of an ArrayCollection | PersistanceCollection.

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

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

adds an address to the entity.
public addAddress ( $entity, Address $address, boolean $isMain )
$entity The entity to add the address to
$address Sulu\Bundle\ContactBundle\Entity\Address The address to be added
$isMain boolean Defines if the address is the main Address of the contact

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

Returns a collection of relations to get addresses.
public getAddressRelations ( $entity ) : mixed
$entity
Результат mixed

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

Returns an api entity.
public getById ( $id, $locale ) : mixed
$id
$locale
Результат mixed

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

Returns api entities.
public getByIds ( $ids, $locale ) : mixed
$ids
$locale
Результат mixed

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

removes the address relation from a contact and also deletes the address if it has no more relations.
public removeAddressRelation ( $entity, $address ) : mixed
$entity
$address
Результат mixed

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

sets main email, based on emails that are set on entity.
public setMainEmail ( $entity ) : mixed
$entity
Результат mixed

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

sets main fax, based on faxes that are set on entity.
public setMainFax ( $entity ) : mixed
$entity
Результат mixed

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

sets the first element to main, if none is set.
public setMainForCollection ( $arrayCollection )
$arrayCollection

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

sets main phone, based on phones that are set on entity.
public setMainPhone ( $entity ) : mixed
$entity
Результат mixed

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

sets main url, based on urls that are set on entity.
public setMainUrl ( $entity ) : mixed
$entity
Результат mixed

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

unsets main of all elements of an ArrayCollection | PersistanceCollection.
public unsetMain ( $arrayCollection ) : boolean
$arrayCollection
Результат boolean returns true if a element was unset