core/db_classes/EE_CPT_Base.class.php 1 location
|
@@ 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' ); |
modules/single_page_checkout/reg_steps/attendee_information/EE_SPCO_Reg_Step_Attendee_Information.class.php 1 location
|
@@ 990-1010 (lines=21) @@
|
| 987 |
|
$input_value = $primary_registrant[$form_input]; |
| 988 |
|
} |
| 989 |
|
// now attempt to save the input data |
| 990 |
|
if (! $this->_save_registration_form_input( |
| 991 |
|
$registration, |
| 992 |
|
$form_input, |
| 993 |
|
$input_value |
| 994 |
|
) |
| 995 |
|
) { |
| 996 |
|
EE_Error::add_error( |
| 997 |
|
sprintf( |
| 998 |
|
esc_html__( |
| 999 |
|
'Unable to save registration form data for the form input: "%1$s" with the submitted value: "%2$s"', |
| 1000 |
|
'event_espresso' |
| 1001 |
|
), |
| 1002 |
|
$form_input, |
| 1003 |
|
$input_value |
| 1004 |
|
), |
| 1005 |
|
__FILE__, |
| 1006 |
|
__FUNCTION__, |
| 1007 |
|
__LINE__ |
| 1008 |
|
); |
| 1009 |
|
return false; |
| 1010 |
|
} |
| 1011 |
|
} |
| 1012 |
|
} |
| 1013 |
|
} // end of foreach ( $valid_data[ $reg_url_link ] as $form_section => $form_inputs ) |
core/db_classes/EE_Registration.class.php 1 location
|
@@ 1452-1467 (lines=16) @@
|
| 1449 |
|
$datetime = $this->get_latest_related_datetime(); |
| 1450 |
|
$DTT_ID = $datetime instanceof EE_Datetime ? $datetime->ID() : 0; |
| 1451 |
|
// verify the registration can checkin for the given DTT_ID |
| 1452 |
|
} elseif (! $this->can_checkin($DTT_ID, $verify)) { |
| 1453 |
|
EE_Error::add_error( |
| 1454 |
|
sprintf( |
| 1455 |
|
esc_html__( |
| 1456 |
|
'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', |
| 1457 |
|
'event_espresso' |
| 1458 |
|
), |
| 1459 |
|
$this->ID(), |
| 1460 |
|
$DTT_ID |
| 1461 |
|
), |
| 1462 |
|
__FILE__, |
| 1463 |
|
__FUNCTION__, |
| 1464 |
|
__LINE__ |
| 1465 |
|
); |
| 1466 |
|
return false; |
| 1467 |
|
} |
| 1468 |
|
$status_paths = array( |
| 1469 |
|
EE_Checkin::status_checked_never => EE_Checkin::status_checked_in, |
| 1470 |
|
EE_Checkin::status_checked_in => EE_Checkin::status_checked_out, |
core/EE_Session.core.php 1 location
|
@@ 499-503 (lines=5) @@
|
| 496 |
|
return false; |
| 497 |
|
} |
| 498 |
|
foreach ($data as $key => $value) { |
| 499 |
|
if (isset($this->_default_session_vars[ $key ])) { |
| 500 |
|
EE_Error::add_error(sprintf(__('Sorry! %s is a default session datum and can not be reset.', |
| 501 |
|
'event_espresso'), $key), __FILE__, __FUNCTION__, __LINE__); |
| 502 |
|
return false; |
| 503 |
|
} |
| 504 |
|
$this->_session_data[ $key ] = $value; |
| 505 |
|
} |
| 506 |
|
return true; |