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