@@ 1589-1598 (lines=10) @@ | ||
1586 | * @return EE_Datetime|null |
|
1587 | * @throws EE_Error |
|
1588 | */ |
|
1589 | public function get_latest_related_datetime() |
|
1590 | { |
|
1591 | return EEM_Datetime::instance()->get_one( |
|
1592 | array( |
|
1593 | array( |
|
1594 | 'Ticket.Registration.REG_ID' => $this->ID(), |
|
1595 | ), |
|
1596 | 'order_by' => array('DTT_EVT_start' => 'DESC'), |
|
1597 | ) |
|
1598 | ); |
|
1599 | } |
|
1600 | ||
1601 | ||
@@ 1608-1617 (lines=10) @@ | ||
1605 | * |
|
1606 | * @throws EE_Error |
|
1607 | */ |
|
1608 | public function get_earliest_related_datetime() |
|
1609 | { |
|
1610 | return EEM_Datetime::instance()->get_one( |
|
1611 | array( |
|
1612 | array( |
|
1613 | 'Ticket.Registration.REG_ID' => $this->ID(), |
|
1614 | ), |
|
1615 | 'order_by' => array('DTT_EVT_start' => 'ASC'), |
|
1616 | ) |
|
1617 | ); |
|
1618 | } |
|
1619 | ||
1620 |