protected function submitEditField()
    {
        if ($this->isPosted('delete')) {
            $this->deleteField();
        } else if ($this->isPosted('save') && $this->validateEditField()) {
            if (isset($this->data_field['field_id'])) {
                $this->updateField();
            } else {
                $this->addField();
            }
        }
    }
protected function submitEditField()
    {
        if ($this->isPosted('delete')) {
            $this->deleteField();
        } else if ($this->isPosted('save') && $this->validateEditField()) {
            if (isset($this->data_field['field_id'])) {
                $this->updateField();
            } else {
                $this->addField();
            }
        }
    }
protected function submitEditField ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteField ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditField ( ) ) { if ( isset ( $ this -> data_field [ 'field_id' ] ) ) { $ this -> updateField ( ) ; } else { $ this -> addField ( ) ; } } }
Handles a submitted field data
Handles a submitted field data