@@ 288-294 (lines=7) @@ | ||
285 | * @return EE_Form_Section_Proper |
|
286 | * @throws EE_Error |
|
287 | */ |
|
288 | public function get_proper_subsection($name, $require_construction_to_be_finalized = TRUE ){ |
|
289 | $subsection = $this->get_subsection( $name, $require_construction_to_be_finalized ); |
|
290 | if( ! $subsection instanceof EE_Form_Section_Proper){ |
|
291 | throw new EE_Error(sprintf(__("Subsection '%'s is not an instanceof EE_Form_Section_Proper on form '%s'", 'event_espresso'),$name, get_class($this))); |
|
292 | } |
|
293 | return $subsection; |
|
294 | } |
|
295 | ||
296 | ||
297 |
@@ 3532-3538 (lines=7) @@ | ||
3529 | * @throws EE_Error |
|
3530 | * @return EE_Model_Field_Base |
|
3531 | */ |
|
3532 | public function field_settings_for($fieldName){ |
|
3533 | $fieldSettings=$this->field_settings(true); |
|
3534 | if( ! array_key_exists($fieldName,$fieldSettings)){ |
|
3535 | throw new EE_Error(sprintf(__("There is no field/column '%s' on '%s'",'event_espresso'),$fieldName,get_class($this))); |
|
3536 | } |
|
3537 | return $fieldSettings[$fieldName]; |
|
3538 | } |
|
3539 | ||
3540 | /** |
|
3541 | * Checks if this field exists on this model |