@@ 1210-1219 (lines=10) @@ | ||
1207 | * @return EE_Datetime|null |
|
1208 | * @throws \EE_Error |
|
1209 | */ |
|
1210 | public function get_latest_related_datetime() { |
|
1211 | return EEM_Datetime::instance()->get_one( |
|
1212 | array( |
|
1213 | array( |
|
1214 | 'Ticket.Registration.REG_ID' => $this->ID() |
|
1215 | ), |
|
1216 | 'order_by' => array( 'DTT_EVT_start' => 'DESC' ) |
|
1217 | ) |
|
1218 | ); |
|
1219 | } |
|
1220 | ||
1221 | ||
1222 | ||
@@ 1229-1238 (lines=10) @@ | ||
1226 | * |
|
1227 | * @throws \EE_Error |
|
1228 | */ |
|
1229 | public function get_earliest_related_datetime() { |
|
1230 | return EEM_Datetime::instance()->get_one( |
|
1231 | array( |
|
1232 | array( |
|
1233 | 'Ticket.Registration.REG_ID' => $this->ID() |
|
1234 | ), |
|
1235 | 'order_by' => array( 'DTT_EVT_start' => 'ASC' ) |
|
1236 | ) |
|
1237 | ); |
|
1238 | } |
|
1239 | ||
1240 | ||
1241 |