/** * Add a field to the form. * Almost always called from the {@link FORM} constructor. Call this function only after * setting all properties of the field. * @param FIELD $field * @access private */ public function add_field($field) { $this->_field_list[] = $field; $this->_fields[$field->id] = $field; $field->added_to_form($this); }