add method getDownloadLinks()

This commit is contained in:
Uwe Steinmann 2017-03-01 08:05:18 +01:00
parent 2407f5c5e6
commit 5df25ce082

View File

@ -5615,6 +5615,18 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
return SeedDMS_Core_DownloadLink::getInstance($id, $this->_document->_dms);
} /* }}} */
/**
* Get all download links of version
*
* @param SeedDMS_Core_User $user
* @param object $user return only links created by this user
* @param boolean $all set to true if expired links shall be returned
* @return array list of links
*/
function getDownloadLinks($user=null, $all=false) { /* {{{ */
return SeedDMS_Core_DownloadLink::getAllInstances($user, $this->_version, $this->_document->_dms);
} /* }}} */
} /* }}} */