@@ 414-416 (lines=3) @@ | ||
411 | { |
|
412 | //validate context |
|
413 | //valid context? |
|
414 | if (! isset($this->_contexts[$context])) { |
|
415 | throw new EE_Error( |
|
416 | sprintf( |
|
417 | __('The context %s is not a valid context for %s.', 'event_espresso'), |
|
418 | $context, |
|
419 | get_class($this) |
|
@@ 470-478 (lines=9) @@ | ||
467 | public function get_data_for_context($context, EE_Registration $registration, $id = 0) |
|
468 | { |
|
469 | //valid context? |
|
470 | if (! isset($this->_contexts[$context])) { |
|
471 | throw new EE_Error( |
|
472 | sprintf( |
|
473 | __('The context %s is not a valid context for %s.', 'event_espresso'), |
|
474 | $context, |
|
475 | get_class($this) |
|
476 | ) |
|
477 | ); |
|
478 | } |
|
479 | //get data and apply global and class specific filters on it. |
|
480 | $data = apply_filters( |
|
481 | 'FHEE__EE_message_type__get_data_for_context__data', |
@@ 4868-4870 (lines=3) @@ | ||
4865 | break; |
|
4866 | } |
|
4867 | } |
|
4868 | if (! isset($this->_cache_foreign_key_to_fields[$model_name])) { |
|
4869 | throw new EE_Error(sprintf(__("There is no foreign key field pointing to model %s on model %s", |
|
4870 | 'event_espresso'), $model_name, get_class($this))); |
|
4871 | } |
|
4872 | } |
|
4873 | return $this->_cache_foreign_key_to_fields[$model_name]; |