mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-07-15 08:58:10 +00:00
- added more configuration variables to class LetoDMS_DMS
This commit is contained in:
parent
fbc6ce4c9a
commit
cc43fca1a3
|
@ -84,6 +84,18 @@ class LetoDMS_DMS {
|
||||||
*/
|
*/
|
||||||
public $enableGuestLogin;
|
public $enableGuestLogin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean $enableConverting set to true if conversion of content is desired
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
public $enableConverting;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array $convertFileTypes list of files types that shall be converted
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
public $convertFileTypes;
|
||||||
|
|
||||||
function __construct($db, $contentDir, $contentOffsetDir) { /* {{{ */
|
function __construct($db, $contentDir, $contentOffsetDir) { /* {{{ */
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->contentDir = $contentDir;
|
$this->contentDir = $contentDir;
|
||||||
|
@ -91,6 +103,9 @@ class LetoDMS_DMS {
|
||||||
$this->rootFolderID = 1;
|
$this->rootFolderID = 1;
|
||||||
$this->adminID = 1;
|
$this->adminID = 1;
|
||||||
$this->guestID = 2;
|
$this->guestID = 2;
|
||||||
|
$this->enableAdminRevApp = false;
|
||||||
|
$this->enableConverting = false;
|
||||||
|
$this->convertFileTypes = array();
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function getDB() { /* {{{ */
|
function getDB() { /* {{{ */
|
||||||
|
@ -117,6 +132,14 @@ class LetoDMS_DMS {
|
||||||
$this->enableAdminRevApp = $enable;
|
$this->enableAdminRevApp = $enable;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
function setEnableConverting($enable) { /* {{{ */
|
||||||
|
$this->enableConverting = $enable;
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
|
function setConvertFileTypes($types) { /* {{{ */
|
||||||
|
$this->convertFileTypes = $types;
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Login as a user
|
* Login as a user
|
||||||
*
|
*
|
||||||
|
|
|
@ -27,4 +27,5 @@ $dms->setAdminID($settings->_adminID);
|
||||||
$dms->setGuestID($settings->_guestID);
|
$dms->setGuestID($settings->_guestID);
|
||||||
$dms->setEnableGuestLogin($settings->_enableGuestLogin);
|
$dms->setEnableGuestLogin($settings->_enableGuestLogin);
|
||||||
$dms->setEnableAdminRevApp($settings->_enableAdminRevApp);
|
$dms->setEnableAdminRevApp($settings->_enableAdminRevApp);
|
||||||
|
$dms->setEnableConverting($settings->_enableConverting);
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user