add optional parameter cleasAccessList()

will turn off removal of notification
This commit is contained in:
Uwe Steinmann 2015-06-19 15:24:19 +02:00
parent 7d28e2f6f5
commit 44bb62f413
2 changed files with 12 additions and 2 deletions

View File

@ -621,9 +621,10 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
/**
* Delete all entries for this document from the access control list
*
* @param boolean $noclean set to true if notifier list shall not be clean up
* @return boolean true if operation was successful otherwise false
*/
function clearAccessList() { /* {{{ */
function clearAccessList($noclean=false) { /* {{{ */
$db = $this->_dms->getDB();
$queryStr = "DELETE FROM tblACLs WHERE targetType = " . T_DOCUMENT . " AND target = " . $this->_id;
@ -631,6 +632,10 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
return false;
unset($this->_accessList);
if(!$noclean)
self::cleanNotifyList();
return true;
} /* }}} */

View File

@ -952,9 +952,10 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
/**
* Delete all entries for this folder from the access control list
*
* @param boolean $noclean set to true if notifier list shall not be clean up
* @return boolean true if operation was successful otherwise false
*/
function clearAccessList() { /* {{{ */
function clearAccessList($noclean=false) { /* {{{ */
$db = $this->_dms->getDB();
$queryStr = "DELETE FROM tblACLs WHERE targetType = " . T_FOLDER . " AND target = " . $this->_id;
@ -962,6 +963,10 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
return false;
unset($this->_accessList);
if(!$noclean)
self::cleanNotifyList();
return true;
} /* }}} */