1 | <?php |
||
12 | class EE_Checkin extends EE_Base_Class |
||
13 | { |
||
14 | |||
15 | |||
16 | /** |
||
17 | * Used to reference when a registration has been checked out. |
||
18 | * |
||
19 | * @type int |
||
20 | */ |
||
21 | const status_checked_out = 0; |
||
22 | |||
23 | /** |
||
24 | * Used to reference when a registration has been checked in. |
||
25 | * |
||
26 | * @type int |
||
27 | */ |
||
28 | const status_checked_in = 1; |
||
29 | |||
30 | /** |
||
31 | * Used to reference when a registration has never been checked in. |
||
32 | * |
||
33 | * @type int |
||
34 | */ |
||
35 | const status_checked_never = 2; |
||
36 | |||
37 | |||
38 | |||
39 | /** |
||
40 | * |
||
41 | * @param array $props_n_values incoming values |
||
42 | * @param string $timezone incoming timezone (if not set the timezone set for the website will be used.) |
||
43 | * @param array $date_formats incoming date_formats in an array |
||
44 | * where the first value is the date_format |
||
45 | * and the second value is the time format |
||
46 | * @return EE_Checkin |
||
47 | * @throws EE_Error |
||
48 | */ |
||
49 | public static function new_instance($props_n_values = array(), $timezone = null, $date_formats = array()) |
||
56 | |||
57 | |||
58 | |||
59 | /** |
||
60 | * @param array $props_n_values incoming values from the database |
||
61 | * @param string $timezone incoming timezone as set by the model. If not set the timezone for |
||
62 | * the website will be used. |
||
63 | * @return EE_Checkin |
||
64 | * @throws EE_Error |
||
65 | */ |
||
66 | public static function new_instance_from_db($props_n_values = array(), $timezone = null) |
||
70 | |||
71 | |||
72 | public function ID() |
||
76 | |||
77 | |||
78 | public function registration_id() |
||
82 | |||
83 | |||
84 | public function datetime_id() |
||
88 | |||
89 | |||
90 | public function status() |
||
94 | |||
95 | |||
96 | public function timestamp() |
||
100 | } |
||
101 |