| @@ 1252-1253 (lines=2) @@ | ||
| 1249 | $fn = (array) $field_name; |
|
| 1250 | $args = array_merge( $fn, (array) $args ); |
|
| 1251 | ||
| 1252 | if ( !method_exists( $this, $callback ) ) |
|
| 1253 | throw new EE_Error(sprintf( __('The method named "%s" given as the callback param in "display_in_my_timezone" does not exist. Please check your spelling', 'event_espresso'), $callback ) ); |
|
| 1254 | $args = (array) $args; |
|
| 1255 | $return = $prepend . call_user_func_array( array( $this, $callback ), $args ) . $append; |
|
| 1256 | ||
| @@ 628-629 (lines=2) @@ | ||
| 625 | //process addressees for each context. Child classes will have to have methods for each context defined to handle the processing of the data object within them |
|
| 626 | foreach ( $this->_contexts as $context => $details ) { |
|
| 627 | $xpctd_method = '_' . $context . '_addressees'; |
|
| 628 | if ( !method_exists( $this, $xpctd_method ) ) |
|
| 629 | throw new EE_Error( sprintf( __('The data for %1$s message type cannot be prepared because there is no set method for doing so. The expected method name is "%2$s" please doublecheck the %1$s message type class and make sure that method is present', 'event_espresso'), $this->label['singular'], $xpctd_method) ); |
|
| 630 | $this->_addressees[$context] = call_user_func( array( $this, $xpctd_method ) ); |
|
| 631 | } |
|
| 632 | return FALSE; //DON'T EXIT |
|
| @@ 1837-1839 (lines=3) @@ | ||
| 1834 | } |
|
| 1835 | /** @type WPDB $wpdb */ |
|
| 1836 | global $wpdb; |
|
| 1837 | if( ! method_exists( $wpdb, $wpdb_method ) ){ |
|
| 1838 | throw new EE_Error( sprintf( __( 'There is no method named "%s" on Wordpress\' $wpdb object','event_espresso' ), $wpdb_method ) ); |
|
| 1839 | } |
|
| 1840 | if( WP_DEBUG ){ |
|
| 1841 | $old_show_errors_value = $wpdb->show_errors; |
|
| 1842 | $wpdb->show_errors( FALSE ); |
|