@@ 293-299 (lines=7) @@ | ||
290 | * @return EE_Form_Section_Proper |
|
291 | * @throws EE_Error |
|
292 | */ |
|
293 | public function get_proper_subsection($name, $require_construction_to_be_finalized = TRUE ){ |
|
294 | $subsection = $this->get_subsection( $name, $require_construction_to_be_finalized ); |
|
295 | if( ! $subsection instanceof EE_Form_Section_Proper){ |
|
296 | throw new EE_Error(sprintf(__("Subsection '%'s is not an instanceof EE_Form_Section_Proper on form '%s'", 'event_espresso'),$name, get_class($this))); |
|
297 | } |
|
298 | return $subsection; |
|
299 | } |
|
300 | ||
301 | ||
302 |
@@ 3807-3813 (lines=7) @@ | ||
3804 | * @throws EE_Error |
|
3805 | * @return EE_Model_Field_Base |
|
3806 | */ |
|
3807 | public function field_settings_for($fieldName){ |
|
3808 | $fieldSettings=$this->field_settings(true); |
|
3809 | if( ! array_key_exists($fieldName,$fieldSettings)){ |
|
3810 | throw new EE_Error(sprintf(__("There is no field/column '%s' on '%s'",'event_espresso'),$fieldName,get_class($this))); |
|
3811 | } |
|
3812 | return $fieldSettings[$fieldName]; |
|
3813 | } |
|
3814 | ||
3815 | /** |
|
3816 | * Checks if this field exists on this model |