tp TouchPointWP MeetingArray - TenthPres/TouchPoint-WP GitHub Wiki
tp\TouchPointWP\MeetingArray
Class MeetingArray
A class to hold an array of meetings grouped into a larger event, like a conference.
With Meeting Grouping, a MeetingArray can also be an Edition or Cluster, and can contain other MeetingArrays. See Meeting_GroupingPlanner.
- Full name:
\tp\TouchPointWP\MeetingArray - This class implements:
\tp\TouchPointWP\Interfaces\apiMeeting,IteratorAggregate,ArrayAccess,Countable
Constants
| Constant | Visibility | Type | Value |
|---|---|---|---|
ROLE_EDITION |
public | "edition" | |
ROLE_CLUSTER |
public | "cluster" |
Properties
slugToUse
public string $slugToUse
titleToUse
public string $titleToUse
groupRole
public ?string $groupRole
spanningMeeting
public ?object $spanningMeeting
isGroupMember
public ?bool $isGroupMember
Methods
__construct
public __construct(array $meetingArray = [], ?\stdClass $involvement = null, ?string $groupRole = null): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$meetingArray |
array | The meetings, or other MeetingArrays, in this group. |
$involvement |
?\stdClass | The involvement this group represents (from the API, not an Involvement object). |
$groupRole |
?string | The grouping type, one of the ROLE_ constants. |
__get
public __get(string $what): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$what |
string |
leafMeetings
Get the individual meetings in this group, including those within nested groups, in the order they were added.
public leafMeetings(): object[]
firstMeeting
Get the first meeting in the group, which determines the group's (negative) mtgId.
public firstMeeting(): object
For the previous behavior's collections (no groupRole), this is the first meeting added, which is how those collections have always been identified. Existing posts are found by that ID, so it must not change.
For Editions and Clusters, it's the earliest meeting: by start, then end, then lowest meeting ID. This doesn't depend on the order the meetings were added.
mtgStartDt
Get the first start time of the meetings in the array.
public mtgStartDt(): \DateTimeInterface
mtgEndDt
Get the last end time (or start time) of the meetings in the array.
public mtgEndDt(): \DateTimeInterface
status
Get the status of the meetings in the array.
public status(): int
getIterator
Retrieve an external iterator
public getIterator(): \ArrayIterator
See Also:
offsetExists
Whether a offset exists
public offsetExists(mixed $offset): bool
Parameters:
| Parameter | Type | Description |
|---|---|---|
$offset |
mixed |
See Also:
offsetGet
Offset to retrieve
public offsetGet(mixed $offset): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$offset |
mixed |
See Also:
offsetSet
Offset to set
public offsetSet(mixed $offset, mixed $value): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$offset |
mixed | |
$value |
mixed |
See Also:
offsetUnset
Offset to unset
public offsetUnset(mixed $offset): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$offset |
mixed |
See Also:
count
Count meetings in the array
public count(): int
See Also: