mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-02-13 12:00:13 +00:00
add method getDownloadLinks()
This commit is contained in:
parent
2407f5c5e6
commit
5df25ce082
|
|
@ -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);
|
||||
} /* }}} */
|
||||
|
||||
} /* }}} */
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user