| @@ 297-303 (lines=7) @@ | ||
| 294 | * @return EE_Form_Section_Proper |
|
| 295 | * @throws EE_Error |
|
| 296 | */ |
|
| 297 | public function get_proper_subsection($name, $require_construction_to_be_finalized = TRUE ){ |
|
| 298 | $subsection = $this->get_subsection( $name, $require_construction_to_be_finalized ); |
|
| 299 | if( ! $subsection instanceof EE_Form_Section_Proper){ |
|
| 300 | throw new EE_Error(sprintf(__("Subsection '%'s is not an instanceof EE_Form_Section_Proper on form '%s'", 'event_espresso'),$name, get_class($this))); |
|
| 301 | } |
|
| 302 | return $subsection; |
|
| 303 | } |
|
| 304 | ||
| 305 | ||
| 306 | ||
| @@ 3845-3851 (lines=7) @@ | ||
| 3842 | * @throws EE_Error |
|
| 3843 | * @return EE_Model_Field_Base |
|
| 3844 | */ |
|
| 3845 | public function field_settings_for($fieldName){ |
|
| 3846 | $fieldSettings=$this->field_settings(true); |
|
| 3847 | if( ! array_key_exists($fieldName,$fieldSettings)){ |
|
| 3848 | throw new EE_Error(sprintf(__("There is no field/column '%s' on '%s'",'event_espresso'),$fieldName,get_class($this))); |
|
| 3849 | } |
|
| 3850 | return $fieldSettings[$fieldName]; |
|
| 3851 | } |
|
| 3852 | ||
| 3853 | /** |
|
| 3854 | * Checks if this field exists on this model |
|