@@ 514-522 (lines=9) @@ | ||
511 | if( ! $generator_object ){ |
|
512 | continue; |
|
513 | } |
|
514 | if( ! $generator_object instanceof EE_Restriction_Generator_Base ){ |
|
515 | throw new EE_Error( |
|
516 | sprintf( |
|
517 | __( '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' ), |
|
518 | $context, |
|
519 | $this->get_this_model_name() |
|
520 | ) |
|
521 | ); |
|
522 | } |
|
523 | $action = $this->cap_action_for_context( $context ); |
|
524 | if( ! $generator_object->construction_finalized() ){ |
|
525 | $generator_object->_construct_finalize( $this, $action ); |
|
@@ 2183-2185 (lines=3) @@ | ||
2180 | $field_with_model_name = $field; |
|
2181 | } |
|
2182 | } |
|
2183 | if( !isset($field_with_model_name) || !$field_with_model_name ){ |
|
2184 | throw new EE_Error(sprintf(__("There is no EE_Any_Foreign_Model_Name field on model %s", "event_espresso"), $this->get_this_model_name() )); |
|
2185 | } |
|
2186 | return $field_with_model_name; |
|
2187 | } |
|
2188 | ||
@@ 3750-3752 (lines=3) @@ | ||
3747 | } |
|
3748 | } |
|
3749 | $classInstance=$this->instantiate_class_from_array_or_object($row); |
|
3750 | if( ! $classInstance ) { |
|
3751 | throw new EE_Error( |
|
3752 | sprintf( |
|
3753 | __( 'Could not create instance of class %s from row %s', 'event_espresso' ), |
|
3754 | $this->get_this_model_name(), |
|
3755 | http_build_query( $row ) |