@@ 3417-3423 (lines=7) @@ | ||
3414 | * @throws EE_Error |
|
3415 | * @return EE_Model_Field_Base |
|
3416 | */ |
|
3417 | public function field_settings_for($fieldName){ |
|
3418 | $fieldSettings=$this->field_settings(true); |
|
3419 | if( ! array_key_exists($fieldName,$fieldSettings)){ |
|
3420 | throw new EE_Error(sprintf(__("There is no field/column '%s' on '%s'",'event_espresso'),$fieldName,get_class($this))); |
|
3421 | } |
|
3422 | return $fieldSettings[$fieldName]; |
|
3423 | } |
|
3424 | ||
3425 | /** |
|
3426 | * Checks if this field exists on this model |
@@ 287-293 (lines=7) @@ | ||
284 | * @return EE_Form_Section_Proper |
|
285 | * @throws EE_Error |
|
286 | */ |
|
287 | public function get_proper_subsection($name, $require_construction_to_be_finalized = TRUE ){ |
|
288 | $subsection = $this->get_subsection( $name, $require_construction_to_be_finalized ); |
|
289 | if( ! $subsection instanceof EE_Form_Section_Proper){ |
|
290 | throw new EE_Error(sprintf(__("Subsection '%'s is not an instanceof EE_Form_Section_Proper on form '%s'", 'event_espresso'),$name, get_class($this))); |
|
291 | } |
|
292 | return $subsection; |
|
293 | } |
|
294 | ||
295 | ||
296 |