- added more configuration variables to class LetoDMS_DMS

This commit is contained in:
steinm 2010-11-18 10:32:10 +00:00
parent fbc6ce4c9a
commit cc43fca1a3
2 changed files with 24 additions and 0 deletions

View File

@ -84,6 +84,18 @@ class LetoDMS_DMS {
*/
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) { /* {{{ */
$this->db = $db;
$this->contentDir = $contentDir;
@ -91,6 +103,9 @@ class LetoDMS_DMS {
$this->rootFolderID = 1;
$this->adminID = 1;
$this->guestID = 2;
$this->enableAdminRevApp = false;
$this->enableConverting = false;
$this->convertFileTypes = array();
} /* }}} */
function getDB() { /* {{{ */
@ -117,6 +132,14 @@ class LetoDMS_DMS {
$this->enableAdminRevApp = $enable;
} /* }}} */
function setEnableConverting($enable) { /* {{{ */
$this->enableConverting = $enable;
} /* }}} */
function setConvertFileTypes($types) { /* {{{ */
$this->convertFileTypes = $types;
} /* }}} */
/**
* Login as a user
*

View File

@ -27,4 +27,5 @@ $dms->setAdminID($settings->_adminID);
$dms->setGuestID($settings->_guestID);
$dms->setEnableGuestLogin($settings->_enableGuestLogin);
$dms->setEnableAdminRevApp($settings->_enableAdminRevApp);
$dms->setEnableConverting($settings->_enableConverting);
?>