AgentContractContactCompanyBinding
Class AgentContractContactCompanyBinding
Table of Contents
Methods
- __construct() : mixed
- bindToDocuments() : void
- Bulk bind a contact/company to documents
- isDocumentBoundToEntity() : bool
- rebind() : void
- Replace all bindings of a contact/company to another ones
- unbind() : void
- Remove all bindings of a contact/company
Methods
__construct()
public
__construct(int $entityTypeId) : mixed
Parameters
- $entityTypeId : int
bindToDocuments()
Bulk bind a contact/company to documents
public
bindToDocuments(int $entityId, array<string|int, mixed> $documentIds) : void
Parameters
- $entityId : int
- $documentIds : array<string|int, mixed>
isDocumentBoundToEntity()
public
isDocumentBoundToEntity(int $documentId, int $entityId) : bool
Parameters
- $documentId : int
- $entityId : int
Return values
boolrebind()
Replace all bindings of a contact/company to another ones
public
rebind(int $oldEntityId, int $newEntityId) : void
Parameters
- $oldEntityId : int
- $newEntityId : int
unbind()
Remove all bindings of a contact/company
public
unbind(int $entityId) : void
Parameters
- $entityId : int