\EventTicket
A ticket type 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 $defaults = ;
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- // methods
- public void getCMSFields()
- public void validate()
- public void populateDefaults()
- protected void onBeforeWrite()
- public RequiredFields getValidator()
- public array getAvailableForDateTime()
- public int getSaleEndForDateTime()
- public string StartSummary()
- public string PriceSummary()
- public string Summary()
- public void canEdit()
- public void canCreate()
- public void canDelete()
- public void canView()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $defaults
- $has_one
- $searchable_fields
- $summary_fields
Methods
protected
public
- PriceSummary()
- StartSummary()
- Summary()
- canCreate()
- canDelete()
- canEdit()
- canView()
- getAvailableForDateTime() — Returns the number of tickets available for an event time.
- getCMSFields()
- getSaleEndForDateTime() — Calculates the timestamp for when this ticket stops going on sale for an event date time.
- getValidator()
- populateDefaults()
- validate()