admin_pages/messages/Messages_Admin_Page.core.php 1 location
|
@@ 1898-1913 (lines=16) @@
|
| 1895 |
|
$message_template_group = EEM_Message_Template_Group::instance()->get_one_by_ID( |
| 1896 |
|
$this->_req_data['message_template_group_id'] |
| 1897 |
|
); |
| 1898 |
|
if (! $message_template_group instanceof EE_Message_Template_Group) { |
| 1899 |
|
EE_Error::add_error( |
| 1900 |
|
sprintf( |
| 1901 |
|
esc_html__( |
| 1902 |
|
'Unable to change the active state because the given id "%1$d" does not match a valid "%2$s"', |
| 1903 |
|
'event_espresso' |
| 1904 |
|
), |
| 1905 |
|
$this->_req_data['message_template_group_id'], |
| 1906 |
|
'EE_Message_Template_Group' |
| 1907 |
|
), |
| 1908 |
|
__FILE__, |
| 1909 |
|
__FUNCTION__, |
| 1910 |
|
__LINE__ |
| 1911 |
|
); |
| 1912 |
|
$success = false; |
| 1913 |
|
} |
| 1914 |
|
if ($success) { |
| 1915 |
|
$success = $status === 'off' |
| 1916 |
|
? $message_template_group->deactivate_context($this->_req_data['context']) |
core/business/EE_Registration_Processor.class.php 1 location
|
@@ 708-719 (lines=12) @@
|
| 705 |
|
); |
| 706 |
|
// grab the related ticket object for this line_item |
| 707 |
|
$ticket = $line_item->ticket(); |
| 708 |
|
if (! $ticket instanceof EE_Ticket) { |
| 709 |
|
EE_Error::add_error( |
| 710 |
|
sprintf( |
| 711 |
|
esc_html__('Line item %s did not contain a valid ticket', 'event_espresso'), |
| 712 |
|
$line_item->ID() |
| 713 |
|
), |
| 714 |
|
__FILE__, |
| 715 |
|
__FUNCTION__, |
| 716 |
|
__LINE__ |
| 717 |
|
); |
| 718 |
|
return null; |
| 719 |
|
} |
| 720 |
|
$registration_service = new CreateRegistrationService(); |
| 721 |
|
// then generate a new registration from that |
| 722 |
|
return $registration_service->create( |
core/db_classes/EE_Base_Class.class.php 1 location
|
@@ 1210-1224 (lines=15) @@
|
| 1207 |
|
public function get_DateTime_object($field_name) |
| 1208 |
|
{ |
| 1209 |
|
$field_settings = $this->get_model()->field_settings_for($field_name); |
| 1210 |
|
if (! $field_settings instanceof EE_Datetime_Field) { |
| 1211 |
|
EE_Error::add_error( |
| 1212 |
|
sprintf( |
| 1213 |
|
esc_html__( |
| 1214 |
|
'The field %s is not an EE_Datetime_Field field. There is no DateTime object stored on this field type.', |
| 1215 |
|
'event_espresso' |
| 1216 |
|
), |
| 1217 |
|
$field_name |
| 1218 |
|
), |
| 1219 |
|
__FILE__, |
| 1220 |
|
__FUNCTION__, |
| 1221 |
|
__LINE__ |
| 1222 |
|
); |
| 1223 |
|
return false; |
| 1224 |
|
} |
| 1225 |
|
return isset($this->_fields[ $field_name ]) && $this->_fields[ $field_name ] instanceof DateTime |
| 1226 |
|
? clone $this->_fields[ $field_name ] |
| 1227 |
|
: null; |
core/admin/EE_Admin_Page.core.php 1 location
|
@@ 1359-1374 (lines=16) @@
|
| 1356 |
|
. $tour |
| 1357 |
|
. '.class.php' : $file_path; |
| 1358 |
|
// if file is STILL not readable then let's do a EE_Error so its more graceful than a fatal error. |
| 1359 |
|
if (! is_readable($file_path)) { |
| 1360 |
|
EE_Error::add_error( |
| 1361 |
|
sprintf( |
| 1362 |
|
esc_html__( |
| 1363 |
|
'The file path given for the help tour (%s) is not a valid path. Please check that the string you set for the help tour on this route (%s) is the correct spelling', |
| 1364 |
|
'event_espresso' |
| 1365 |
|
), |
| 1366 |
|
$file_path, |
| 1367 |
|
$tour |
| 1368 |
|
), |
| 1369 |
|
__FILE__, |
| 1370 |
|
__FUNCTION__, |
| 1371 |
|
__LINE__ |
| 1372 |
|
); |
| 1373 |
|
return; |
| 1374 |
|
} |
| 1375 |
|
require_once $file_path; |
| 1376 |
|
if (! class_exists($tour)) { |
| 1377 |
|
$error_msg[] = sprintf( |
core/EE_Session.core.php 1 location
|
@@ 588-600 (lines=13) @@
|
| 585 |
|
return false; |
| 586 |
|
} |
| 587 |
|
foreach ($data as $key => $value) { |
| 588 |
|
if (isset($this->_default_session_vars[ $key ])) { |
| 589 |
|
EE_Error::add_error( |
| 590 |
|
sprintf( |
| 591 |
|
esc_html__( |
| 592 |
|
'Sorry! %s is a default session datum and can not be reset.', |
| 593 |
|
'event_espresso' |
| 594 |
|
), |
| 595 |
|
$key |
| 596 |
|
), |
| 597 |
|
__FILE__, |
| 598 |
|
__FUNCTION__, |
| 599 |
|
__LINE__ |
| 600 |
|
); |
| 601 |
|
return false; |
| 602 |
|
} |
| 603 |
|
$this->_session_data[ $key ] = $value; |
core/db_classes/EE_CPT_Base.class.php 1 location
|
@@ 147-162 (lines=16) @@
|
| 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 |
|
), |
| 154 |
|
get_class($this), |
| 155 |
|
$this->ID() |
| 156 |
|
), |
| 157 |
|
__FILE__, |
| 158 |
|
__FUNCTION__, |
| 159 |
|
__LINE__ |
| 160 |
|
); |
| 161 |
|
return null; |
| 162 |
|
} |
| 163 |
|
$term_taxonomy->set_count($term_taxonomy->count() - 1); |
| 164 |
|
$term_taxonomy->save(); |
| 165 |
|
return $this->_remove_relation_to($term_taxonomy, 'Term_Taxonomy'); |
admin_pages/transactions/Transactions_Admin_Page.core.php 1 location
|
@@ 502-511 (lines=10) @@
|
| 499 |
|
$this->_transaction->verify_abandoned_transaction_status(); |
| 500 |
|
} |
| 501 |
|
|
| 502 |
|
if (! $this->_transaction instanceof EE_Transaction) { |
| 503 |
|
$error_msg = sprintf( |
| 504 |
|
esc_html__( |
| 505 |
|
'An error occurred and the details for the transaction with the ID # %d could not be retrieved.', |
| 506 |
|
'event_espresso' |
| 507 |
|
), |
| 508 |
|
$TXN_ID |
| 509 |
|
); |
| 510 |
|
EE_Error::add_error($error_msg, __FILE__, __FUNCTION__, __LINE__); |
| 511 |
|
} |
| 512 |
|
} |
| 513 |
|
|
| 514 |
|
|