@@ 1520-1529 (lines=10) @@ | ||
1517 | * @return EE_Datetime|null |
|
1518 | * @throws EE_Error |
|
1519 | */ |
|
1520 | public function get_latest_related_datetime() |
|
1521 | { |
|
1522 | return EEM_Datetime::instance()->get_one( |
|
1523 | array( |
|
1524 | array( |
|
1525 | 'Ticket.Registration.REG_ID' => $this->ID(), |
|
1526 | ), |
|
1527 | 'order_by' => array('DTT_EVT_start' => 'DESC'), |
|
1528 | ) |
|
1529 | ); |
|
1530 | } |
|
1531 | ||
1532 | ||
@@ 1539-1548 (lines=10) @@ | ||
1536 | * |
|
1537 | * @throws EE_Error |
|
1538 | */ |
|
1539 | public function get_earliest_related_datetime() |
|
1540 | { |
|
1541 | return EEM_Datetime::instance()->get_one( |
|
1542 | array( |
|
1543 | array( |
|
1544 | 'Ticket.Registration.REG_ID' => $this->ID(), |
|
1545 | ), |
|
1546 | 'order_by' => array('DTT_EVT_start' => 'ASC'), |
|
1547 | ) |
|
1548 | ); |
|
1549 | } |
|
1550 | ||
1551 |