Reference

Session

Whenever you’re dealing with a session in your template, you’re working with a Session object.

Properties

id

Type: int|null

The ID of the session.

event

Type: verbb\events\elements\Event|null

The associated Event.

title

Type: string|null

The title of the session (auto-generated based on the Event Type’s settings).

startDate

Type: DateTime|null

The date and time the session starts.

endDate

Type: DateTime|null

The date and time the session ends.

allDay

Type: bool

Whether this session spans the entire day (true or false).

status

Type: string|null

The status of the session (e.g., live, pending, or expired).

Methods

getCpEditUrl()

Returns: string|null

Returns the URL to edit this session in the control panel.

getTickets()

Returns: verbb\events\elements\TicketCollection

Returns a collection of Ticket objects for this session.

getIcsUrl()

Returns: string

Returns a URL to download the ICS (iCalendar) file for this single session.