protected function submitEditUser()
    {
        if ($this->isPosted('delete')) {
            $this->deleteUser();
        } else if ($this->isPosted('save') && $this->validateEditUser()) {
            if (isset($this->data_user['user_id'])) {
                $this->updateUser();
            } else {
                $this->addUser();
            }
        }
    }
protected function submitEditUser()
    {
        if ($this->isPosted('delete')) {
            $this->deleteUser();
        } else if ($this->isPosted('save') && $this->validateEditUser()) {
            if (isset($this->data_user['user_id'])) {
                $this->updateUser();
            } else {
                $this->addUser();
            }
        }
    }
protected function submitEditUser ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteUser ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditUser ( ) ) { if ( isset ( $ this -> data_user [ 'user_id' ] ) ) { $ this -> updateUser ( ) ; } else { $ this -> addUser ( ) ; } } }
Handles a submitted user data
Handles a submitted user data