\EventTicket
A ticket that can be attached to a registrable event. Each ticket can have a specific quantity available for each event time.
Synopsis
class EventTicket
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $has_many = ;
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- private static string $default_sort = "Sort ASC, Created ASC";
- private static string $singular_name = "Ticket";
- private static string $plural_name = "Tickets";
- private static array $defaults = ;
- // methods
- public void getCMSFields()
- public RequiredFields getValidator()
- public DataList getBookedAttendees()
- public void isAvailable()
- public void getAvailabilityReason()
- public array getAvailability()
- public string StartSummary()
- public string EndSummary()
- public string PriceSummary()
- public boolean hasPrice()
- public boolean isFree()
- public string Summary()
- public void canEdit()
- public void canCreate()
- public void canDelete()
- public void canView()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $default_sort
- $defaults
- $has_many
- $has_one
- $plural_name
- $searchable_fields
- $singular_name
- $summary_fields
Methods
public
- EndSummary()
- PriceSummary()
- StartSummary()
- Summary()
- canCreate()
- canDelete()
- canEdit()
- canView()
- getAvailability() — Returns the number of tickets available for an event time.
- getAvailabilityReason()
- getBookedAttendees() — Get the attendees that have booked this ticket.
- getCMSFields()
- getValidator()
- hasPrice() — Check if this ticket has a price
- isAvailable()
- isFree() — Check if this ticket is a free one.