/**
  * @access private
  */
 function _approval_update_settings(Docman_ApprovalTableFactory $atf, $sStatus, $notification, $notificationOccurence, $description, $owner)
 {
     $table = $atf->getTable();
     $newOwner = false;
     if (!$table->isCustomizable()) {
         // Cannot set status of an old table to something else than 'close'
         // or 'deleted'
         if ($sStatus != PLUGIN_DOCMAN_APPROVAL_TABLE_CLOSED && $sStatus != PLUGIN_DOCMAN_APPROVAL_TABLE_DELETED) {
             $sStatus = PLUGIN_DOCMAN_APPROVAL_TABLE_CLOSED;
         }
         // Ensure that, once the table belong to an old version, user
         // cannot change the notification type.
         $notification = $table->getNotification();
         $newOwner = $table->getOwner();
     }
     // Change owner
     if ($newOwner === false) {
         $_owner = UserManager::instance()->findUser($owner);
         if (!$_owner) {
             $newOwner = $table->getOwner();
         } else {
             if (!$_owner->isAnonymous() && ($_owner->isActive() || $_owner->isRestricted())) {
                 $newOwner = $_owner->getId();
             } else {
                 $newOwner = $table->getOwner();
             }
         }
     }
     // Update settings
     $updated = $atf->updateTable($sStatus, $notification, $notificationOccurence, $description, $newOwner);
     if ($updated) {
         $this->_controler->feedback->log('info', $GLOBALS['Language']->getText('plugin_docman', 'approval_tableupd_success'));
     }
 }