@@ 528-536 (lines=9) @@ | ||
525 | if( ! $generator_object ){ |
|
526 | continue; |
|
527 | } |
|
528 | if( ! $generator_object instanceof EE_Restriction_Generator_Base ){ |
|
529 | throw new EE_Error( |
|
530 | sprintf( |
|
531 | __( 'Index "%1$s" in the model %2$s\'s _cap_restriction_generators is not a child of EE_Restriction_Generator_Base. It should be that or NULL.', 'event_espresso' ), |
|
532 | $context, |
|
533 | $this->get_this_model_name() |
|
534 | ) |
|
535 | ); |
|
536 | } |
|
537 | $action = $this->cap_action_for_context( $context ); |
|
538 | if( ! $generator_object->construction_finalized() ){ |
|
539 | $generator_object->_construct_finalize( $this, $action ); |
|
@@ 2278-2280 (lines=3) @@ | ||
2275 | $field_with_model_name = $field; |
|
2276 | } |
|
2277 | } |
|
2278 | if( !isset($field_with_model_name) || !$field_with_model_name ){ |
|
2279 | throw new EE_Error(sprintf(__("There is no EE_Any_Foreign_Model_Name field on model %s", "event_espresso"), $this->get_this_model_name() )); |
|
2280 | } |
|
2281 | return $field_with_model_name; |
|
2282 | } |
|
2283 | ||
@@ 4059-4061 (lines=3) @@ | ||
4056 | } |
|
4057 | } |
|
4058 | $classInstance = $this->instantiate_class_from_array_or_object($row); |
|
4059 | if( ! $classInstance ) { |
|
4060 | throw new EE_Error( |
|
4061 | sprintf( |
|
4062 | __( 'Could not create instance of class %s from row %s', 'event_espresso' ), |
|
4063 | $this->get_this_model_name(), |
|
4064 | http_build_query( $row ) |