Broarm\EventTickets\Extensions\TicketExtension
Class TicketExtension
Synopsis
class TicketExtension
extends DataExtension
{
- // members
- protected $controller;
- private static array $db = ;
- private static array $has_many = ;
- private static array $many_many = ;
- private static array $many_many_extraFields = ;
- private static array $defaults = ;
- private static array $translate = ;
- protected $cachedGuestList;
- // methods
- public void updateCMSFields()
- public void onAfterWrite()
- public void createDefaultFields()
- public void updateCMSActions()
- public void getGuestListStatus()
- public int getAvailability()
- public bool getTicketsAvailable()
- public bool getTicketsSoldOut()
- public DBDate|DBField|null getTicketSaleStartDate()
- public bool getEventExpired()
- public bool getTicketSalePending()
- public DataList getGuestList()
- public string getCheckedInCount()
- public mixed|string getSuccessContent()
- public mixed|string getMailContent()
- public void getTicketContent()
- public string getEventTitle()
- public void getEventStartDate()
- public void getEventAddress()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $db
- $defaults
- $has_many
- $many_many
- $many_many_extraFields
- $translate
protected
- $cachedGuestList
- $controller
Methods
public
- createDefaultFields() — Creates and sets up the default fields
- getAvailability() — Get the leftover capacity
- getCheckedInCount() — Get the checked in count for display in templates
- getEventAddress()
- getEventExpired() — Check if the event is expired, either by unavailable tickets or because the date has passed
- getEventStartDate()
- getEventTitle() — Check if the method 'getTicketEventTitle' has been set and retrieve the event name.
- getGuestList() — Get only the attendees who are certain to attend Also includes attendees without any reservation, these are manually added
- getGuestListStatus() — Get the guest list status used in the summary fields
- getMailContent() — Get the mail message
- getSuccessContent() — Get the success message
- getTicketContent()
- getTicketSalePending() — Check if the ticket sale is still pending
- getTicketSaleStartDate() — get The sale start date
- getTicketsAvailable() — Check if the tickets are still available
- getTicketsSoldOut() — Check if the tickets are sold out
- onAfterWrite() — Trigger actions after write
- updateCMSActions() — Extend the page actions with an start check in action
- updateCMSFields()