| @@ 473-479 (lines=7) @@ | ||
| 470 | * @return EE_Form_Section_Proper |
|
| 471 | * @throws EE_Error |
|
| 472 | */ |
|
| 473 | public function get_proper_subsection($name, $require_construction_to_be_finalized = true) |
|
| 474 | { |
|
| 475 | $subsection = $this->get_subsection($name, $require_construction_to_be_finalized); |
|
| 476 | if (! $subsection instanceof EE_Form_Section_Proper) { |
|
| 477 | throw new EE_Error( |
|
| 478 | sprintf( |
|
| 479 | __("Subsection '%'s is not an instanceof EE_Form_Section_Proper on form '%s'", 'event_espresso'), |
|
| 480 | $name, |
|
| 481 | get_class($this) |
|
| 482 | ) |
|
| @@ 4809-4817 (lines=9) @@ | ||
| 4806 | * @throws EE_Error |
|
| 4807 | * @return EE_Model_Field_Base |
|
| 4808 | */ |
|
| 4809 | public function field_settings_for($fieldName, $include_db_only_fields = true) |
|
| 4810 | { |
|
| 4811 | $fieldSettings = $this->field_settings($include_db_only_fields); |
|
| 4812 | if (! array_key_exists($fieldName, $fieldSettings)) { |
|
| 4813 | throw new EE_Error(sprintf(__("There is no field/column '%s' on '%s'", 'event_espresso'), $fieldName, |
|
| 4814 | get_class($this))); |
|
| 4815 | } |
|
| 4816 | return $fieldSettings[$fieldName]; |
|
| 4817 | } |
|
| 4818 | ||
| 4819 | ||
| 4820 | ||