Event
Whenever you’re dealing with an event in your template, you’re actually working with a Event object.
Properties
The ID of the event.
The event’s title.
The URL to this single event.
The event’s type (as defined by its event type).
The ID of the event’s type.
The current status of the event, which is live, pending, expired or disabled. An enabled event is pending before its post date, expired after its expiry date and live in between.
Whether the event is enabled (true or false).
The total capacity of tickets available for this event.
The start date of the event (based on the first session).
The end date of the event (based on the last session).
The date when this event becomes available (i.e., when it’s posted).
The date after which this event will no longer be available.
Methods
Returns the URL to edit this event in the control panel.
Returns a collection of Session objects associated with this event.
Returns a collection of TicketType objects associated with this event.
Returns a collection of Ticket objects generated for this event.
Returns a collection of available Ticket objects for sale. This respects the 'Available From/To' dates, along with ticket capacity and sales status.
Returns a URL to download the ICS (iCalendar) file for this single event. For multi-session events this spans all sessions; use Session::getIcsUrl() for a specific session.
Returns whether the event has any tickets available for purchase. This is false when none of its tickets are available, such as when the event is sold out or not on sale.