@@ 159-163 (lines=5) @@ | ||
156 | // grab method |
|
157 | $method = $module_method[1]; |
|
158 | // verify that class exists |
|
159 | if ( ! class_exists( $module_name )) { |
|
160 | $msg = sprintf( __( 'The requested %s class could not be found.', 'event_espresso' ), $module_name ); |
|
161 | EE_Error::add_error( $msg, __FILE__, __FUNCTION__, __LINE__ ); |
|
162 | return FALSE; |
|
163 | } |
|
164 | // verify that method exists |
|
165 | if ( ! method_exists( $module_name, $method )) { |
|
166 | $msg = sprintf( __( 'The class method %s for the %s route is in invalid.', 'event_espresso' ), $method, $current_route ); |
@@ 284-299 (lines=16) @@ | ||
281 | */ |
|
282 | public static function verify_and_retrieve_class_name_for_data_handler_reference( $data_handler_reference ) { |
|
283 | $class_name = 'EE_Messages_' . $data_handler_reference . '_incoming_data'; |
|
284 | if ( ! class_exists( $class_name ) ) { |
|
285 | EE_Error::add_error( |
|
286 | sprintf( |
|
287 | __( |
|
288 | 'The included data handler reference (%s) does not match any valid, accessible, "EE_Messages_incoming_data" classes. Looking for %s.', |
|
289 | 'event_espresso' |
|
290 | ), |
|
291 | $data_handler_reference, |
|
292 | $class_name |
|
293 | ), |
|
294 | __FILE__, |
|
295 | __FUNCTION__, |
|
296 | __LINE__ |
|
297 | ); |
|
298 | $class_name = ''; //clear out class_name so caller knows this isn't valid. |
|
299 | } |
|
300 | return $class_name; |
|
301 | } |
|
302 |
@@ 2200-2210 (lines=11) @@ | ||
2197 | 'MTP_content' => $set_column_values['MTP_content'] |
|
2198 | ); |
|
2199 | if ( $updated = $MTP->update( $message_template_fields, array( $where_cols_n_values ) ) ) { |
|
2200 | if ( $updated === false ) { |
|
2201 | EE_Error::add_error( |
|
2202 | sprintf( |
|
2203 | __( '%s field was NOT updated for some reason', 'event_espresso' ), |
|
2204 | $template_field |
|
2205 | ), |
|
2206 | __FILE__, __FUNCTION__, __LINE__ |
|
2207 | ); |
|
2208 | } else { |
|
2209 | $success = 1; |
|
2210 | } |
|
2211 | } |
|
2212 | $action_desc = 'updated'; |
|
2213 | } |
@@ 1112-1115 (lines=4) @@ | ||
1109 | $file_path = !is_readable($file_path) ? EE_ADMIN_PAGES . basename($this->_get_dir()) . '/help_tabs/' . $cfg['filename'] . '.help_tab.php' : $file_path; |
|
1110 | ||
1111 | //if file is STILL not readable then let's do a EE_Error so its more graceful than a fatal error. |
|
1112 | if ( !is_readable($file_path) && !isset($cfg['callback']) ) { |
|
1113 | EE_Error::add_error( sprintf( __('The filename given for the help tab %s is not a valid file and there is no other configuration for the tab content. Please check that the string you set for the help tab on this route (%s) is the correct spelling. The file should be in %s', 'event_espresso'), $tab_id, key($config), $file_path ), __FILE__, __FUNCTION__, __LINE__ ); |
|
1114 | return; |
|
1115 | } |
|
1116 | $template_args['admin_page_obj'] = $this; |
|
1117 | $content = EEH_Template::display_template($file_path, $template_args, true); |
|
1118 | } else { |