CRM_Member_Utils_RelationshipProcessor
in package
Class CRM_Member_Utils_RelationshipProcessor
Table of Contents
Properties
- $active : bool
- Is the relationship being enabled.
- $contactIDs : array<string|int, int>
- Contact IDs to process.
- $memberships : array<string|int, mixed>
- Memberships for related contacts.
Methods
- __construct() : mixed
- CRM_Member_Utils_RelationshipProcessor constructor.
- getRelationshipMembershipsForContact() : array<string|int, mixed>
- Get memberships for contact of potentially inheritable types.
- getInheritableMembershipStatusIDs() : array<string|int, mixed>
- Get membership statuses that could be inherited.
- setMemberships() : mixed
- Set the relevant memberships on the class.
Properties
$active
Is the relationship being enabled.
protected
bool
$active
$contactIDs
Contact IDs to process.
protected
array<string|int, int>
$contactIDs
= []
$memberships
Memberships for related contacts.
protected
array<string|int, mixed>
$memberships
= []
Methods
__construct()
CRM_Member_Utils_RelationshipProcessor constructor.
public
__construct(array<string|int, int> $contactIDs, bool $active) : mixed
Parameters
- $contactIDs : array<string|int, int>
- $active : bool
Tags
getRelationshipMembershipsForContact()
Get memberships for contact of potentially inheritable types.
public
getRelationshipMembershipsForContact(int $contactID) : array<string|int, mixed>
Parameters
- $contactID : int
Return values
array<string|int, mixed>getInheritableMembershipStatusIDs()
Get membership statuses that could be inherited.
protected
getInheritableMembershipStatusIDs() : array<string|int, mixed>
Return values
array<string|int, mixed>setMemberships()
Set the relevant memberships on the class.
protected
setMemberships() : mixed
We are looking at relationships that are potentially inheritable so we can filter out membership types with NULL relationship_type_id