@@ 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 ); |
|
@@ 2323-2325 (lines=3) @@ | ||
2320 | $field_with_model_name = $field; |
|
2321 | } |
|
2322 | } |
|
2323 | if( !isset($field_with_model_name) || !$field_with_model_name ){ |
|
2324 | throw new EE_Error(sprintf(__("There is no EE_Any_Foreign_Model_Name field on model %s", "event_espresso"), $this->get_this_model_name() )); |
|
2325 | } |
|
2326 | return $field_with_model_name; |
|
2327 | } |
|
2328 | ||
@@ 4108-4110 (lines=3) @@ | ||
4105 | } |
|
4106 | } |
|
4107 | $classInstance = $this->instantiate_class_from_array_or_object($row); |
|
4108 | if( ! $classInstance ) { |
|
4109 | throw new EE_Error( |
|
4110 | sprintf( |
|
4111 | __( 'Could not create instance of class %s from row %s', 'event_espresso' ), |
|
4112 | $this->get_this_model_name(), |
|
4113 | http_build_query( $row ) |