add var noReadForStatus and method getLoggedInUser()

This commit is contained in:
Uwe Steinmann 2017-09-28 07:21:08 +02:00
parent 3912cbb577
commit 031887de0a

View File

@ -147,6 +147,13 @@ class SeedDMS_Core_DMS {
*/
public $viewOnlineFileTypes;
/**
* @var array $noReadForStatus list of status without read right
* online.
* @access public
*/
public $noReadForStatus;
/**
* @var string $version version of pear package
* @access public
@ -354,6 +361,7 @@ class SeedDMS_Core_DMS {
$this->forceRename = false;
$this->enableConverting = false;
$this->convertFileTypes = array();
$this->noReadForStatus = array();
$this->classnames = array();
$this->classnames['folder'] = 'SeedDMS_Core_Folder';
$this->classnames['document'] = 'SeedDMS_Core_Document';
@ -542,6 +550,19 @@ class SeedDMS_Core_DMS {
$this->user = $user;
} /* }}} */
/**
* Get the logged in user
*
* If user authentication was done externally, this function can
* be used to tell the dms who is currently logged in.
*
* @return object $user
*
*/
function getLoggedInUser() { /* {{{ */
return $this->user;
} /* }}} */
/**
* Return a document by its id
*