Events
Use this API to create, update and delete marketing events.
Methods
Invoke via \Components\Marketing\Events::method()
Click a method name to copy it.
The Attendee table contains all custom fields for all events, but specific events make use of different columns. Return the relevent custom fields for a particular Event.
Return
Rows in the configuration custom fields table.
Deletes a record from the database
Parameters
$iEventId
int unsigned
A record's event_id
Return
Returns true if record existed and was deleted, otherwise false
Gets a record from the database
Parameters
$iEventId
int unsigned
A record's event_id
Return a set of records from the database
Return all the marketing_events that belong to a specific category.
Return all the current events that a contact is attending.
Return all of the current events that a contact is attending.
Gets a single field from a record
Parameters
$iEventId
int unsigned
A record's event_id
Returns the number of records in the database (matching the filter if specified)
Retrieves the event corresponding to an event product
Is the specified contact allowed to be added to the specified Event
Return
Return true if allowed, false if not.
Return true if the specified contact is registered to attend the specified event.
Is the specified contact allowed to be added to the specified Event
Return
Return true if allowed, false if not.
Return the event date with the format: (On the same day) 1 Sep 2016 2:00pm - 4:00pm. (Different day) 1 Sep 2016 2:00pm - 3 Sep 2016 3:00pm.
Return $iTime formatted into a human readable string, in the timezone specified for this event.
Saves a record into the database
Saves a specific column of a row into a database
Parameters
$iEventId
int unsigned
A record's event_id
Return
Array of
Events that match the search query.