|
@@ 494-502 (lines=9) @@
|
| 491 |
|
if( ! $generator_object ){ |
| 492 |
|
continue; |
| 493 |
|
} |
| 494 |
|
if( ! $generator_object instanceof EE_Restriction_Generator_Base ){ |
| 495 |
|
throw new EE_Error( |
| 496 |
|
sprintf( |
| 497 |
|
__( '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' ), |
| 498 |
|
$context, |
| 499 |
|
$this->get_this_model_name() |
| 500 |
|
) |
| 501 |
|
); |
| 502 |
|
} |
| 503 |
|
$action = $this->cap_action_for_context( $context ); |
| 504 |
|
if( ! $generator_object->construction_finalized() ){ |
| 505 |
|
$generator_object->_construct_finalize( $this, $action ); |
|
@@ 2091-2093 (lines=3) @@
|
| 2088 |
|
$field_with_model_name = $field; |
| 2089 |
|
} |
| 2090 |
|
} |
| 2091 |
|
if( !isset($field_with_model_name) || !$field_with_model_name ){ |
| 2092 |
|
throw new EE_Error(sprintf(__("There is no EE_Any_Foreign_Model_Name field on model %s", "event_espresso"), $this->get_this_model_name() )); |
| 2093 |
|
} |
| 2094 |
|
return $field_with_model_name; |
| 2095 |
|
} |
| 2096 |
|
|
|
@@ 3635-3637 (lines=3) @@
|
| 3632 |
|
} |
| 3633 |
|
} |
| 3634 |
|
$classInstance=$this->instantiate_class_from_array_or_object($row); |
| 3635 |
|
if( ! $classInstance ) { |
| 3636 |
|
throw new EE_Error( |
| 3637 |
|
sprintf( |
| 3638 |
|
__( 'Could not create instance of class %s from row %s', 'event_espresso' ), |
| 3639 |
|
$this->get_this_model_name(), |
| 3640 |
|
http_build_query( $row ) |