add class variable enforceRename

if set, uploaded files will be move (not copied) into the document store
This commit is contained in:
Uwe Steinmann 2014-11-24 15:07:46 +01:00
parent 406b4a5a00
commit 17269c2979

View File

@ -100,6 +100,14 @@ class SeedDMS_Core_DMS {
*/
public $rootFolderID;
/**
* @var integer $maxDirID maximum number of documents per folder on the
* filesystem. If this variable is set to a value != 0, the content
* directory will have a two level hierarchy for document storage.
* @access public
*/
public $maxDirID;
/**
* @var boolean $enableConverting set to true if conversion of content
* is desired
@ -107,6 +115,17 @@ class SeedDMS_Core_DMS {
*/
public $enableConverting;
/**
* @var boolean $forceRename use renameFile() instead of copyFile() when
* copying the document content into the data store. The default is
* to copy the file. This parameter only affects the methods
* SeedDMS_Core_Document::addDocument() and
* SeedDMS_Core_Document::addDocumentFile(). Setting this to true
* may save resources especially for large files.
* @access public
*/
public $forceRename;
/**
* @var array $convertFileTypes list of files types that shall be converted
* @access public
@ -239,6 +258,7 @@ class SeedDMS_Core_DMS {
$this->contentDir = $contentDir.'/';
$this->rootFolderID = 1;
$this->maxDirID = 0; //31998;
$this->forceRename = false;
$this->enableConverting = false;
$this->convertFileTypes = array();
$this->version = '@package_version@';
@ -363,6 +383,10 @@ class SeedDMS_Core_DMS {
$this->viewOnlineFileTypes = $types;
} /* }}} */
function setForceRename($enable) { /* {{{ */
$this->forceRename = $enable;
} /* }}} */
/**
* Login as a user
*