@@ 1595-1604 (lines=10) @@ | ||
1592 | * @return EE_Datetime|null |
|
1593 | * @throws EE_Error |
|
1594 | */ |
|
1595 | public function get_latest_related_datetime() |
|
1596 | { |
|
1597 | return EEM_Datetime::instance()->get_one( |
|
1598 | array( |
|
1599 | array( |
|
1600 | 'Ticket.Registration.REG_ID' => $this->ID(), |
|
1601 | ), |
|
1602 | 'order_by' => array('DTT_EVT_start' => 'DESC'), |
|
1603 | ) |
|
1604 | ); |
|
1605 | } |
|
1606 | ||
1607 | ||
@@ 1614-1623 (lines=10) @@ | ||
1611 | * |
|
1612 | * @throws EE_Error |
|
1613 | */ |
|
1614 | public function get_earliest_related_datetime() |
|
1615 | { |
|
1616 | return EEM_Datetime::instance()->get_one( |
|
1617 | array( |
|
1618 | array( |
|
1619 | 'Ticket.Registration.REG_ID' => $this->ID(), |
|
1620 | ), |
|
1621 | 'order_by' => array('DTT_EVT_start' => 'ASC'), |
|
1622 | ) |
|
1623 | ); |
|
1624 | } |
|
1625 | ||
1626 |