@@ 430-432 (lines=3) @@ | ||
427 | public function get_url_trigger( $context, $sending_messenger, EE_Registration $registration ) { |
|
428 | //validate context |
|
429 | //valid context? |
|
430 | if ( ! isset( $this->_contexts[ $context ] ) ) { |
|
431 | throw new EE_Error( |
|
432 | sprintf( |
|
433 | __( 'The context %s is not a valid context for %s.', 'event_espresso' ), |
|
434 | $context, |
|
435 | get_class( $this ) |
|
@@ 486-488 (lines=3) @@ | ||
483 | */ |
|
484 | public function get_data_for_context( $context, EE_Registration $registration, $id = 0 ) { |
|
485 | //valid context? |
|
486 | if ( ! isset( $this->_contexts[ $context ] ) ) { |
|
487 | throw new EE_Error( |
|
488 | sprintf( |
|
489 | __( 'The context %s is not a valid context for %s.', 'event_espresso' ), |
|
490 | $context, |
|
491 | get_class( $this ) |
@@ 4705-4707 (lines=3) @@ | ||
4702 | break; |
|
4703 | } |
|
4704 | } |
|
4705 | if (! isset($this->_cache_foreign_key_to_fields[$model_name])) { |
|
4706 | throw new EE_Error(sprintf(__("There is no foreign key field pointing to model %s on model %s", |
|
4707 | 'event_espresso'), $model_name, get_class($this))); |
|
4708 | } |
|
4709 | } |
|
4710 | return $this->_cache_foreign_key_to_fields[$model_name]; |