mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
add class variable enforceRename
if set, uploaded files will be move (not copied) into the document store
This commit is contained in:
parent
406b4a5a00
commit
17269c2979
|
@ -100,6 +100,14 @@ class SeedDMS_Core_DMS {
|
||||||
*/
|
*/
|
||||||
public $rootFolderID;
|
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
|
* @var boolean $enableConverting set to true if conversion of content
|
||||||
* is desired
|
* is desired
|
||||||
|
@ -107,6 +115,17 @@ class SeedDMS_Core_DMS {
|
||||||
*/
|
*/
|
||||||
public $enableConverting;
|
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
|
* @var array $convertFileTypes list of files types that shall be converted
|
||||||
* @access public
|
* @access public
|
||||||
|
@ -239,6 +258,7 @@ class SeedDMS_Core_DMS {
|
||||||
$this->contentDir = $contentDir.'/';
|
$this->contentDir = $contentDir.'/';
|
||||||
$this->rootFolderID = 1;
|
$this->rootFolderID = 1;
|
||||||
$this->maxDirID = 0; //31998;
|
$this->maxDirID = 0; //31998;
|
||||||
|
$this->forceRename = false;
|
||||||
$this->enableConverting = false;
|
$this->enableConverting = false;
|
||||||
$this->convertFileTypes = array();
|
$this->convertFileTypes = array();
|
||||||
$this->version = '@package_version@';
|
$this->version = '@package_version@';
|
||||||
|
@ -363,6 +383,10 @@ class SeedDMS_Core_DMS {
|
||||||
$this->viewOnlineFileTypes = $types;
|
$this->viewOnlineFileTypes = $types;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
function setForceRename($enable) { /* {{{ */
|
||||||
|
$this->forceRename = $enable;
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Login as a user
|
* Login as a user
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user