core/libraries/rest_api/calculations/Attendee.php 1 location
|
@@ 38-40 (lines=3) @@
|
35 |
|
private static function getAttendeeObject($wpdb_row) |
36 |
|
{ |
37 |
|
$attendee = null; |
38 |
|
if (is_array($wpdb_row) && isset($wpdb_row['Attendee_CPT.ID']) && absint($wpdb_row['Attendee_CPT.ID'])) { |
39 |
|
$attendee = EEM_Attendee::instance()->get_one_by_ID($wpdb_row['Attendee_CPT.ID']); |
40 |
|
} |
41 |
|
return $attendee; |
42 |
|
} |
43 |
|
|
core/libraries/rest_api/calculations/Datetime.php 1 location
|
@@ 27-31 (lines=5) @@
|
24 |
|
*/ |
25 |
|
public static function spacesRemainingConsideringTickets($wpdb_row, $request, $controller) |
26 |
|
{ |
27 |
|
if (is_array($wpdb_row) && isset($wpdb_row['Datetime.DTT_ID'])) { |
28 |
|
$dtt_obj = EEM_Datetime::instance()->get_one_by_ID($wpdb_row['Datetime.DTT_ID']); |
29 |
|
} else { |
30 |
|
$dtt_obj = null; |
31 |
|
} |
32 |
|
if ($dtt_obj instanceof EE_Datetime) { |
33 |
|
return $dtt_obj->spaces_remaining(true); |
34 |
|
} else { |
core/libraries/rest_api/calculations/Registration.php 1 location
|
@@ 33-37 (lines=5) @@
|
30 |
|
*/ |
31 |
|
public static function datetimeCheckinStati($wpdb_row, $request, $controller) |
32 |
|
{ |
33 |
|
if (is_array($wpdb_row) && isset($wpdb_row['Registration.REG_ID'])) { |
34 |
|
$reg = EEM_Registration::instance()->get_one_by_ID($wpdb_row['Registration.REG_ID']); |
35 |
|
} else { |
36 |
|
$reg = null; |
37 |
|
} |
38 |
|
if (! $reg instanceof EE_Registration |
39 |
|
) { |
40 |
|
throw new \EE_Error( |