1 | <?php |
||
19 | abstract class TicketSelectorRow |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * @var \EE_Ticket $ticket |
||
24 | */ |
||
25 | protected $ticket; |
||
26 | |||
27 | /** |
||
28 | * @var int $total_tickets |
||
29 | */ |
||
30 | protected $total_tickets; |
||
31 | |||
32 | /** |
||
33 | * @var int $max_atndz |
||
34 | */ |
||
35 | protected $max_atndz; |
||
36 | |||
37 | /** |
||
38 | * @var string $date_format |
||
39 | */ |
||
40 | protected $date_format; |
||
41 | |||
42 | /** |
||
43 | * @var int $EVT_ID |
||
44 | */ |
||
45 | protected $EVT_ID; |
||
46 | |||
47 | /** |
||
48 | * @var string $event_status |
||
49 | */ |
||
50 | protected $event_status; |
||
51 | |||
52 | /** |
||
53 | * @var boolean $required_ticket_sold_out |
||
54 | */ |
||
55 | protected $required_ticket_sold_out; |
||
56 | |||
57 | /** |
||
58 | * @var string $ticket_status_display |
||
59 | */ |
||
60 | protected $ticket_status_display; |
||
61 | |||
62 | |||
63 | |||
64 | /** |
||
65 | * @param \EE_Ticket $ticket |
||
66 | * @param int $max_atndz |
||
67 | * @param string $date_format |
||
68 | * @param string $event_status |
||
69 | * @param bool $required_ticket_sold_out |
||
70 | * @throws EE_Error |
||
71 | * @throws UnexpectedEntityException |
||
72 | */ |
||
73 | public function __construct( |
||
87 | |||
88 | |||
89 | |||
90 | /** |
||
91 | * getTicketStatusClasses |
||
92 | * |
||
93 | * @param int $remaining |
||
94 | * @return array |
||
95 | * @throws EE_Error |
||
96 | */ |
||
97 | protected function getTicketStatusClasses($remaining = 0) |
||
141 | |||
142 | |||
143 | /** |
||
144 | * @return string |
||
145 | */ |
||
146 | public function getTicketStatusDisplay() |
||
150 | |||
151 | |||
152 | |||
153 | /** |
||
154 | * setTicketStatusDisplay |
||
155 | * |
||
156 | * @param string $tkt_status |
||
157 | * @param string $ticket_status |
||
158 | * @param int $remaining |
||
159 | * @throws EE_Error |
||
160 | */ |
||
161 | protected function setTicketStatusDisplay($tkt_status, $ticket_status, $remaining) { |
||
181 | |||
182 | |||
183 | |||
184 | /** |
||
185 | * registrationClosed |
||
186 | */ |
||
187 | protected function registrationClosed() |
||
197 | |||
198 | |||
199 | |||
200 | /** |
||
201 | * ticketsSoldOut |
||
202 | */ |
||
203 | protected function ticketsSoldOut() |
||
213 | |||
214 | |||
215 | |||
216 | /** |
||
217 | * ticketsSalesPending |
||
218 | * |
||
219 | * @throws EE_Error |
||
220 | */ |
||
221 | protected function ticketsSalesPending() |
||
245 | |||
246 | |||
247 | |||
248 | /** |
||
249 | * notEnoughTicketsAvailable |
||
250 | */ |
||
251 | protected function notEnoughTicketsAvailable() |
||
265 | |||
266 | |||
267 | |||
268 | } |
||
269 | // End of file TicketSelectorRow.php |
||
270 | // Location: EventEspresso\modules\ticket_selector/TicketSelectorRow.php |