\Marketing\Events\Attendees
Templating
Global Functions
Website
\Components\Website\Designs \Components\Website\Media \Components\Website\Pages \Components\Website\Pages\Forms \Components\Website\Posts \Components\Website\Posts\Categories
Customers
\Components\Customers\Contacts \Components\Customers\Contacts\Relationships \Components\Customers\Contacts\Relationships\Types \Components\Customers\Groups
Marketing
\Components\Marketing\EmailMarketing \Components\Marketing\Events \Components\Marketing\Events\Attendees
METHODS
\Components\Marketing\Events\Categories \Components\Marketing\Events\Locations \Components\Marketing\Events\Recurring \Components\Marketing\Events\Recurring\Rules \Components\Marketing\SMSMarketing
Commerce
\Components\Commerce\Carts \Components\Commerce\Carts\Current \Components\Commerce\Discounts \Components\Commerce\Products \Components\Commerce\Products\Brands \Components\Commerce\Products\Categories \Components\Commerce\Products\Inventory \Components\Commerce\RecurringSales\Items \Components\Commerce\Sales \Components\Commerce\Sales\Items \Components\Commerce\Sales\Receipts \Components\Commerce\Sales\Receipts\Allocations
Settings
\Components\Settings\Administrators \Components\Settings\CustomFields \Components\Settings\Domains
Other Apps
\Components\Website\Comments \Components\Commerce\Affiliates \Components\Commerce\Affiliates\Administrators \Components\Commerce\Affiliates\Commissions \Components\Commerce\Affiliates\Payments \Components\Commerce\RecurringSales \Components\Commerce\RecurringSales\StoredCards
Framework
\Framework\Caching \Framework\Data\Util \Framework\DOM\CurrentContext \Framework\HTML\Converters \Framework\HTTP\Cookies \Framework\HTTP\Redirection \Framework\HTTP\Request \Framework\HTTP\Session \Framework\HTTP\TabState \Framework\HTTP\UserAgent \Framework\I18N\CompanyTypes \Framework\I18N\Countries \Framework\I18N\Languages

Attendees

Use this API to create, update and delete the attendees of events.

Methods

Invoke via \Components\Marketing\Events\Attendees::method()
Click a method name to copy it.
- ` array|null cancelRegistration($arrAttendee) `
Cancel a registration made online for a free event.

The registration's root row is kept with the status 'no_rsvp' and the cancellation time recorded, so the contact can register again and the cancellation stays visible to administrators. Registered guests and anyone attending in the root's place are removed - their contacts never registered themselves, and on an invite-only event a leftover row would be an invitation. The contact's sub-event registrations are cancelled too, except for sub-events that have started.
Parameters:
- $arrAttendee
mixed
Return
The cancelled root attendee, or null when the root was a guest (whose row is removed)
- ` \Iterator dbGetAllIterable($arrQuery) `
Returns the raw rows dbGetAll() would return as an iterator, without building them all into an array

The dbGetAll() counterpart of getAllIterable(), for scans over every stored row of a large table (eg: the site-wide content scans in \Framework\Developer\Refactoring). Rows are as stored - JSON fields are not decoded - and are not entity-cached. Because it bypasses getAll(), components that override getAll() are iterated; search queries and components overriding dbGetAll() are refused.
Parameters:
- $arrQuery
mixed
Return
Yields Attendees
- ` array fieldsGetAll($bCached) `
Returns all the columns this component supports
Parameters:
- $bCached
mixed
Return
array
- ` array get($iEventAttendeeId) `
Gets a record from the database
Parameters:
- $iEventAttendeeId
int unsigned
A record's event_attendee_id
Return
- ` array getAll($arrQuery) `
Return a set of records from the database
Parameters:
- $arrQuery
mixed
Return
Array of Attendees
- ` \Iterator getAllIterable($arrQuery) `
Returns the entities getAll() would return as an iterator, without building them all into an array

For result sets too large to hold as arrays (eg: every recipient of a marketing send) - only the database driver's compact buffer of the result is held, a fraction of getAll()'s memory. Runs the same SQL as getAll(), and runs it now, as getAll() would; rows are decoded as you iterate.
Search queries are not supported, rows are not entity-cached, and components that override getAll() or dbGetAll() (eg: merging in defaults) are refused rather than iterated without their extra rows.
Parameters:
- $arrQuery
mixed
Return
Yields Attendees
- ` array getAlternatesForAttendee($iAttendeeId, $arrQuery) `
Return the attendees attending in place of the given attendee.
Parameters:
- $iAttendeeId
mixed
- $arrQuery
mixed
Return
Array of Attendees
- ` array getAttendeeContactsForEvent($iEventId, $arrQuery) `
Return all Attendees for a particular event, joined with their Contact rows.
This was implemented here because a searchbox didn't seem to want to call any page-level funcions.

can be used as a datasource.
Parameters:
- $iEventId
mixed
- $arrQuery
mixed
Return
Array of joined Attendee and Contact rows.
- ` string getAttendeeRSVPStatus($iEventId, $iContactId) `
Returns the attendee status of a contact and an event
Parameters:
- $iEventId
mixed
- $iContactId
mixed
Return
Attendee status null|no_rsvp|not_attending|maybe|attending
- ` bool delete($iEventAttendeeId, $bDeleteMedia) `
Deletes a record from the database
Parameters:
- $iEventAttendeeId
int unsigned
A record's event_attendee_id
- $bDeleteMedia
mixed
Return
Returns true if record existed and was deleted, otherwise false
- ` int getBundleSeatsUnnamed($arrAttendee) `
Places of a bundle host's bundle that no named guest fills yet - the host's own aside. Naming one moves it to a guest row of its own.
Parameters:
- $arrAttendee
mixed
Return
int
- ` bool getCanCancelRegistration($arrAttendee) `
Returns whether the registration can be cancelled online right now.
Parameters:
- $arrAttendee
mixed
Return
bool
- ` bool getCanManageRegistrationOnline($arrAttendee, $arrEvent) `
Returns whether the attendee has a registration they can look at and change online - what decides whether emails carry a "change or cancel" link. Paid registrations qualify: guests and sub-events can still be changed.
Parameters:
- $arrAttendee
mixed
- $arrEvent
mixed
Return
bool
- ` string|null getCancelRegistrationBlocker($arrAttendee) `
Return why a registration cannot be cancelled online, or null when it can.
Parameters:
- $arrAttendee
mixed
Return
One of the CANCEL_BLOCKER_* constants
- ` string getCancelRegistrationBlockerMessage($strBlocker) `
Return the visitor-facing explanation for a cancellation blocker.
Parameters:
- $strBlocker
mixed
Return
string
- ` mixed getColumn($iEventAttendeeId, $strColumn) `
Gets a single field from a record
Parameters:
- $iEventAttendeeId
int unsigned
A record's event_attendee_id
- $strColumn
mixed
Return
mixed
- ` int getCount($arrFilter) `
Returns the number of records in the database (matching the filter if specified)
Parameters:
- $arrFilter
mixed
Return
int
- ` array|null getForEventIdContactIdAndRsvpCode($iEventId, $iContactId, $strRsvpCode) `
Return the attendee for a contact when the supplied RSVP reference matches their row - the identity check used by the emailed success, calendar and manage links for visitors who are not logged in.
Parameters:
- $iEventId
mixed
- $iContactId
mixed
- $strRsvpCode
mixed
Return
array|null
- ` array getGuestsForAttendee($iAttendeeId, $arrQuery) `
Return the registered guests brought by the given attendee.
Parameters:
- $iAttendeeId
mixed
- $arrQuery
mixed
Return
Array of Attendees
- ` bool getIsBundleHost($arrAttendee) `
Whether the attendee bought a ticket bundle (their row holds its unnamed places).
Parameters:
- $arrAttendee
mixed
Return
bool
- ` bool getIsCancelled($arrAttendee) `
Returns whether the attendee cancelled a registration they had made.

A cancelled attendee stays on the event with the status 'no_rsvp' (they can register again) and the time of the cancellation recorded.
Parameters:
- $arrAttendee
mixed
Return
bool
- ` int getRefundRequiredCountForEvent($iEventId, $bIncludeSubEvents) `
Return the number of attendees requiring refund or credit review for an event.
Parameters:
- $iEventId
mixed
- $bIncludeSubEvents
mixed
Return
int
- ` array getRefundRequiredEventIdsForEvent($iEventId, $bIncludeSubEvents) `
Return event ids included in the refund-review queue for an event.
Parameters:
- $iEventId
mixed
- $bIncludeSubEvents
mixed
Return
array
- ` array getRefundRequiredFilterForEvent($iEventId, $bIncludeSubEvents) `
Return the filter used for attendees requiring refund or credit review.
Parameters:
- $iEventId
mixed
- $bIncludeSubEvents
mixed
Return
array
- ` array|null getRegistrationAttendingAttendee($arrAttendee) `
Return the attendee row that is actually attending for a registration: the root itself when it is attending or maybe, otherwise whoever is attending in its place, or null when nobody is registered.
Parameters:
- $arrAttendee
mixed
Return
array|null
- ` bool getRegistrationChangesClosed($arrEvent) `
Returns whether attendees can no longer change or cancel registrations for the event online. Changes stay open until the event starts, and beyond that for as long as the public RSVP cutoff is open - an event with later sub-events keeps taking registration changes after the parent has begun (see
Events::getRsvpCutoffTimestamp()).
Parameters:
- $arrEvent
mixed
Return
bool
- ` bool getRegistrationHasPayment($arrAttendee) `
Returns whether any part of a registration was paid for: the event sells a ticket, or any row in the group (the attendee, alternates, guests, sub-event registrations) is linked to a sale item or a paid sub-event. Refunds are not automated, so such registrations are not cancelled online.
Parameters:
- $arrAttendee
mixed
Return
bool
- ` array|null getRegistrationRoot($arrAttendee) `
Return the attendee row a registration belongs to. Someone attending in an invitee's place (an alternate, or a company's representative) is a dependant of that invitee's row, which is where the registration is managed.
Parameters:
- $arrAttendee
mixed
Return
array|null
- ` array getRegistrationRows($arrAttendee) `
Return every attendee row that belongs to a registration, dependants first and the given row last: alternates (with everything of theirs), registered guests (with their own sub-event registrations), and the contact's registrations for sub-events that have not started - registration for a started sub-event is closed in both directions, like on the RSVP form. This is the set a cancellation writes, and what the payment and check-in blockers scan.
Parameters:
- $arrAttendee
mixed
Return
Array of Attendees
- ` bool getRequiresRefundReview($arrAttendee) `
Returns whether an attendee row is currently marked for refund review.
Parameters:
- $arrAttendee
mixed
Return
bool
- ` array getSubEventRegistrationsForAttendee($arrAttendee, $bRecursive) `
Return the contact's registrations (attending or maybe) for the sub-events of the attendee's event.
Parameters:
- $arrAttendee
mixed
- $bRecursive
mixed
Return
Array of Attendees
- ` string|int save($arrEntity) `
Saves a record into the database
Parameters:
- $arrEntity
mixed
Return
string|int
- ` void saveColumn($iEventAttendeeId, $strColumn, $strValue) `
Saves a specific column of a row into a database
Parameters:
- $iEventAttendeeId
int unsigned
A record's event_attendee_id
- $strColumn
mixed
- $strValue
mixed
- ` array search($strSearch, $arrQuery) `
Performs a search
Parameters:
- $strSearch
mixed
- $arrQuery
mixed
Return
Array of Attendees that match the search query.

Database Fields

The following fields are used when retrieving and saving entities:
- `event_attendee_id`
int unsigned (10)
- `event_attendee_attendance_status`
Default value: no_rsvp
- `event_attendee_checked_in`
0 or 1
- `event_attendee_invitation_datetime`
datetime
- `event_attendee_rsvp_datetime`
datetime
- `contact_id`
int (11)
- `contact_company_id`
int (11)
- `event_id`
int unsigned (10)
- `event_attendee_original_attendee_id`
int unsigned (10)
- `event_attendee_parent_attendee_id`
int unsigned (10)
- `event_attendee_guest_count`
int (11)
Default value: 1
- `event_attendee_bundle_title`
string (255)
- `event_attendee_bundle_seats`
int unsigned (10)
- `sale_item_id`
int unsigned (10)
- `event_attendee_refund_required_datetime`
datetime
- `event_attendee_refund_required_note`
string (65535)
- `event_attendee_rsvp_code`
string (6)
- `event_attendee_checked_in_datetime`
datetime
- `event_attendee_cancelled_datetime`
datetime