| @@ 147-150 (lines=4) @@ | ||
| 144 | */ |
|
| 145 | public function remove_relation_to_term_taxonomy($term_taxonomy) |
|
| 146 | { |
|
| 147 | if (! $term_taxonomy) { |
|
| 148 | EE_Error::add_error( |
|
| 149 | sprintf( |
|
| 150 | __( |
|
| 151 | "No Term_Taxonomy provided which to remove from model object of type %s and id %d", |
|
| 152 | "event_espresso" |
|
| 153 | ), |
|
| @@ 1541-1556 (lines=16) @@ | ||
| 1538 | $datetime = $this->get_latest_related_datetime(); |
|
| 1539 | $DTT_ID = $datetime instanceof EE_Datetime ? $datetime->ID() : 0; |
|
| 1540 | // verify the registration can checkin for the given DTT_ID |
|
| 1541 | } elseif (! $this->can_checkin($DTT_ID, $verify)) { |
|
| 1542 | EE_Error::add_error( |
|
| 1543 | sprintf( |
|
| 1544 | esc_html__( |
|
| 1545 | 'The given registration (ID:%1$d) can not be checked in to the given DTT_ID (%2$d), because the registration does not have access', |
|
| 1546 | 'event_espresso' |
|
| 1547 | ), |
|
| 1548 | $this->ID(), |
|
| 1549 | $DTT_ID |
|
| 1550 | ), |
|
| 1551 | __FILE__, |
|
| 1552 | __FUNCTION__, |
|
| 1553 | __LINE__ |
|
| 1554 | ); |
|
| 1555 | return false; |
|
| 1556 | } |
|
| 1557 | $status_paths = array( |
|
| 1558 | EE_Checkin::status_checked_never => EE_Checkin::status_checked_in, |
|
| 1559 | EE_Checkin::status_checked_in => EE_Checkin::status_checked_out, |
|