Méthode | Description | |
---|---|---|
addAddress ( $entity, |
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. |
public addAddress ( $entity, |
||
$entity | 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 getAddressRelations ( $entity ) : mixed | ||
$entity | ||
Résultat | mixed |
public removeAddressRelation ( $entity, $address ) : mixed | ||
$entity | ||
$address | ||
Résultat | mixed |
public setMainEmail ( $entity ) : mixed | ||
$entity | ||
Résultat | mixed |
public setMainFax ( $entity ) : mixed | ||
$entity | ||
Résultat | mixed |
public setMainForCollection ( $arrayCollection ) | ||
$arrayCollection |
public setMainPhone ( $entity ) : mixed | ||
$entity | ||
Résultat | mixed |
public setMainUrl ( $entity ) : mixed | ||
$entity | ||
Résultat | mixed |