| @@ 148-151 (lines=4) @@ | ||
| 145 | * @return EE_Base_Class the relation was removed from |
|
| 146 | */ |
|
| 147 | function remove_relation_to_term_taxonomy( $term_taxonomy ) { |
|
| 148 | if ( !$term_taxonomy ) { |
|
| 149 | EE_Error::add_error( sprintf( __( "No Term_Taxonomy provided which to remove from model object of type %s and id %d", "event_espresso" ), get_class( $this ), $this->ID() ), __FILE__, __FUNCTION__, __LINE__ ); |
|
| 150 | return NULL; |
|
| 151 | } |
|
| 152 | $term_taxonomy->set_count( $term_taxonomy->count() - 1 ); |
|
| 153 | $term_taxonomy->save(); |
|
| 154 | return $this->_remove_relation_to( $term_taxonomy, 'Term_Taxonomy' ); |
|
| @@ 1490-1505 (lines=16) @@ | ||
| 1487 | $datetime = $this->get_latest_related_datetime(); |
|
| 1488 | $DTT_ID = $datetime instanceof EE_Datetime ? $datetime->ID() : 0; |
|
| 1489 | // verify the registration can checkin for the given DTT_ID |
|
| 1490 | } elseif (! $this->can_checkin($DTT_ID, $verify)) { |
|
| 1491 | EE_Error::add_error( |
|
| 1492 | sprintf( |
|
| 1493 | esc_html__( |
|
| 1494 | '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', |
|
| 1495 | 'event_espresso' |
|
| 1496 | ), |
|
| 1497 | $this->ID(), |
|
| 1498 | $DTT_ID |
|
| 1499 | ), |
|
| 1500 | __FILE__, |
|
| 1501 | __FUNCTION__, |
|
| 1502 | __LINE__ |
|
| 1503 | ); |
|
| 1504 | return false; |
|
| 1505 | } |
|
| 1506 | $status_paths = array( |
|
| 1507 | EE_Checkin::status_checked_never => EE_Checkin::status_checked_in, |
|
| 1508 | EE_Checkin::status_checked_in => EE_Checkin::status_checked_out, |
|
| @@ 542-546 (lines=5) @@ | ||
| 539 | return false; |
|
| 540 | } |
|
| 541 | foreach ($data as $key => $value) { |
|
| 542 | if (isset($this->_default_session_vars[ $key ])) { |
|
| 543 | EE_Error::add_error(sprintf(__('Sorry! %s is a default session datum and can not be reset.', |
|
| 544 | 'event_espresso'), $key), __FILE__, __FUNCTION__, __LINE__); |
|
| 545 | return false; |
|
| 546 | } |
|
| 547 | $this->_session_data[ $key ] = $value; |
|
| 548 | } |
|
| 549 | return true; |
|