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