1 | <?php |
||
21 | class CheckinStatusDashicon |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @var int $checkin_status |
||
26 | */ |
||
27 | private $checkin_status; |
||
28 | |||
29 | |||
30 | /** |
||
31 | * CheckinStatusDashicon constructor. |
||
32 | * |
||
33 | * @param int $checkin_status |
||
34 | */ |
||
35 | public function __construct($checkin_status = EE_Checkin::status_checked_never) |
||
39 | |||
40 | |||
41 | /** |
||
42 | * @param EE_Checkin $checkin |
||
43 | * @return CheckinStatusDashicon |
||
44 | * @throws EE_Error |
||
45 | */ |
||
46 | public static function fromCheckin(EE_Checkin $checkin) |
||
54 | |||
55 | |||
56 | /** |
||
57 | * @param EE_Registration $registration |
||
58 | * @param EE_Datetime $datetime |
||
59 | * @return CheckinStatusDashicon |
||
60 | * @throws EE_Error |
||
61 | */ |
||
62 | public static function fromRegistrationAndDatetime(EE_Registration $registration, EE_Datetime $datetime) |
||
70 | |||
71 | |||
72 | /** |
||
73 | * @param EE_Registration $registration |
||
74 | * @param int $DTT_ID |
||
75 | * @return CheckinStatusDashicon |
||
76 | * @throws EE_Error |
||
77 | */ |
||
78 | public static function fromRegistrationAndDatetimeId(EE_Registration $registration, $DTT_ID = 0) |
||
86 | |||
87 | /** |
||
88 | * Will return the correct set of dashicon css classes for the set checkin status |
||
89 | * |
||
90 | * @return string |
||
91 | */ |
||
92 | public function cssClasses() |
||
102 | |||
103 | /** |
||
104 | * returns a description for the Checkin Status Dashicon that can be used in List Table Legends |
||
105 | * |
||
106 | * @return string |
||
107 | */ |
||
108 | public function legendLabel() |
||
118 | |||
119 | |||
120 | } |
||
121 | // Location: ui/browser/checkins/entities/CheckinStatusDashicon.php |
||
122 |