protected function submitEditUserRole()
    {
        if ($this->isPosted('delete')) {
            $this->deleteUserRole();
        } else if ($this->isPosted('save') && $this->validateEditUserRole()) {
            if (isset($this->data_role['role_id'])) {
                $this->updateUserRole();
            } else {
                $this->addUserRole();
            }
        }
    }
protected function submitEditUserRole()
    {
        if ($this->isPosted('delete')) {
            $this->deleteUserRole();
        } else if ($this->isPosted('save') && $this->validateEditUserRole()) {
            if (isset($this->data_role['role_id'])) {
                $this->updateUserRole();
            } else {
                $this->addUserRole();
            }
        }
    }
protected function submitEditUserRole ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteUserRole ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditUserRole ( ) ) { if ( isset ( $ this -> data_role [ 'role_id' ] ) ) { $ this -> updateUserRole ( ) ; } else { $ this -> addUserRole ( ) ; } } }
Handles a submitted user role data
Handles a submitted user role data