| @@ 3855-3861 (lines=7) @@ | ||
| 3852 | * @throws EE_Error |
|
| 3853 | * @return EE_Model_Field_Base |
|
| 3854 | */ |
|
| 3855 | public function field_settings_for($fieldName){ |
|
| 3856 | $fieldSettings=$this->field_settings(true); |
|
| 3857 | if( ! array_key_exists($fieldName,$fieldSettings)){ |
|
| 3858 | throw new EE_Error(sprintf(__("There is no field/column '%s' on '%s'",'event_espresso'),$fieldName,get_class($this))); |
|
| 3859 | } |
|
| 3860 | return $fieldSettings[$fieldName]; |
|
| 3861 | } |
|
| 3862 | ||
| 3863 | /** |
|
| 3864 | * Checks if this field exists on this model |
|
| @@ 406-412 (lines=7) @@ | ||
| 403 | * @return EE_Form_Section_Proper |
|
| 404 | * @throws EE_Error |
|
| 405 | */ |
|
| 406 | public function get_proper_subsection($name, $require_construction_to_be_finalized = TRUE ){ |
|
| 407 | $subsection = $this->get_subsection( $name, $require_construction_to_be_finalized ); |
|
| 408 | if( ! $subsection instanceof EE_Form_Section_Proper){ |
|
| 409 | throw new EE_Error( |
|
| 410 | sprintf( |
|
| 411 | __( "Subsection '%'s is not an instanceof EE_Form_Section_Proper on form '%s'", 'event_espresso' ), |
|
| 412 | $name, |
|
| 413 | get_class( $this ) |
|
| 414 | ) |
|
| 415 | ); |
|