mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
- added some documentation
This commit is contained in:
parent
3ea6d218db
commit
89835fcf1a
|
@ -254,12 +254,23 @@ class LetoDMS_Document { /* {{{ */
|
|||
return true;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Return owner of document
|
||||
*
|
||||
* @return object owner of document as an instance of {@link LetoDMS_User}
|
||||
*/
|
||||
function getOwner() { /* {{{ */
|
||||
if (!isset($this->_owner))
|
||||
$this->_owner = $this->_dms->getUser($this->_ownerID);
|
||||
return $this->_owner;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Set owner of a document
|
||||
*
|
||||
* @param object $newOwner new owner
|
||||
* @return boolean true if successful otherwise false
|
||||
*/
|
||||
function setOwner($newOwner) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user