55 $this->settings =
new ilSetting(
"fileupload");
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;
93 $instance->repositoryDndUploadEnabled = $newValue ==
true;
94 $instance->settings->set(
"repository_dnd_upload_enabled",
$instance->repositoryDndUploadEnabled);
116 if (is_numeric($newValue))
119 $newValue = (int)$newValue;
122 else if ($newValue > self::CONCURRENT_UPLOADS_MAX)
131 $instance->concurrentUploads = $newValue;
151 if (self::$instance ==
null)
$repositoryDndUploadEnabled
const CONCURRENT_UPLOADS_MAX
static getInstance()
Gets the instance of the ilFileUploadSettings.
const CONCURRENT_UPLOADS_DEFAULT
static setRepositoryDragAndDropUploadEnabled($newValue)
Sets whether drag and drop file upload in the repository is enabled.
static isRepositoryDragAndDropUploadEnabled()
Gets whether drag and drop file upload in the repository is enabled.
static isDragAndDropUploadEnabled()
Gets whether drag and drop file upload is enabled.
static setConcurrentUploads($newValue)
Sets the number of files that can be uploaded at the same time.
static setDragAndDropUploadEnabled($newValue)
Sets whether drag and drop file upload is enabled.
static getConcurrentUploads()
Gets the number of files that can be uploaded at the same time.
__construct()
Private constructor.