| @@ 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 | ), |
|
| @@ 1525-1540 (lines=16) @@ | ||
| 1522 | $datetime = $this->get_latest_related_datetime(); |
|
| 1523 | $DTT_ID = $datetime instanceof EE_Datetime ? $datetime->ID() : 0; |
|
| 1524 | // verify the registration can checkin for the given DTT_ID |
|
| 1525 | } elseif (! $this->can_checkin($DTT_ID, $verify)) { |
|
| 1526 | EE_Error::add_error( |
|
| 1527 | sprintf( |
|
| 1528 | esc_html__( |
|
| 1529 | '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', |
|
| 1530 | 'event_espresso' |
|
| 1531 | ), |
|
| 1532 | $this->ID(), |
|
| 1533 | $DTT_ID |
|
| 1534 | ), |
|
| 1535 | __FILE__, |
|
| 1536 | __FUNCTION__, |
|
| 1537 | __LINE__ |
|
| 1538 | ); |
|
| 1539 | return false; |
|
| 1540 | } |
|
| 1541 | $status_paths = array( |
|
| 1542 | EE_Checkin::status_checked_never => EE_Checkin::status_checked_in, |
|
| 1543 | EE_Checkin::status_checked_in => EE_Checkin::status_checked_out, |
|