class CRM_Member_Utils_RelationshipProcessor

Class CRM_Member_Utils_RelationshipProcessor

Properties

protected [int] $contactIDs Contact IDs to process.
protected array $memberships Memberships for related contacts.
protected bool $active Is the relationship being enabled.

Methods

__construct([int] $contactIDs, bool $active)

CRM_Member_Utils_RelationshipProcessor constructor.

array
getRelationshipMembershipsForContact(int $contactID)

Get memberships for contact of potentially inheritable types.

setMemberships()

Set the relevant memberships on the class.

array
getInheritableMembershipStatusIDs()

Get membership statuses that could be inherited.

Details

at line 62
__construct([int] $contactIDs, bool $active)

CRM_Member_Utils_RelationshipProcessor constructor.

Parameters

[int] $contactIDs
bool $active

Exceptions

CiviCRM_API3_Exception

at line 75
array getRelationshipMembershipsForContact(int $contactID)

Get memberships for contact of potentially inheritable types.

Parameters

int $contactID

Return Value

array

at line 93
protected setMemberships()

Set the relevant memberships on the class.

We are looking at relationships that are potentially inheritable so we can filter out membership types with NULL relationship_type_id

at line 134
protected array getInheritableMembershipStatusIDs()

Get membership statuses that could be inherited.

Return Value

array