56 $this->dndUploadEnabled = $this->
settings->get(
"dnd_upload_enabled",
true) ==
true;
57 $this->repositoryDndUploadEnabled = $this->
settings->get(
"repository_dnd_upload_enabled",
true) ==
true;
58 $this->concurrentUploads = $this->
settings->get(
"concurrent_upload_count", self::CONCURRENT_UPLOADS_DEFAULT);
70 $instance->dndUploadEnabled = $newValue ==
true;
81 return self::getInstance()->dndUploadEnabled;
93 $instance->repositoryDndUploadEnabled = $newValue ==
true;
94 $instance->settings->set(
"repository_dnd_upload_enabled",
$instance->repositoryDndUploadEnabled);
104 return self::getInstance()->repositoryDndUploadEnabled;
116 if (is_numeric($newValue))
119 $newValue = (int)$newValue;
122 else if ($newValue > self::CONCURRENT_UPLOADS_MAX)
123 $newValue = self::CONCURRENT_UPLOADS_MAX;
127 $newValue = self::CONCURRENT_UPLOADS_DEFAULT;
131 $instance->concurrentUploads = $newValue;
142 return self::getInstance()->concurrentUploads;
151 if (self::$instance == null)
154 return self::$instance;
static setDragAndDropUploadEnabled($newValue)
Sets whether drag and drop file upload is enabled.
static setRepositoryDragAndDropUploadEnabled($newValue)
Sets whether drag and drop file upload in the repository is enabled.
static getConcurrentUploads()
Gets the number of files that can be uploaded at the same time.
static setConcurrentUploads($newValue)
Sets the number of files that can be uploaded at the same time.
static getInstance()
Gets the instance of the ilFileUploadSettings.
static isRepositoryDragAndDropUploadEnabled()
Gets whether drag and drop file upload in the repository is enabled.
__construct()
Private constructor.
$repositoryDndUploadEnabled
const CONCURRENT_UPLOADS_MAX
static isDragAndDropUploadEnabled()
Gets whether drag and drop file upload is enabled.
const CONCURRENT_UPLOADS_DEFAULT