◆ __construct()
ilFileUploadSettings::__construct |
( |
| ) |
|
|
private |
Private constructor.
Definition at line 53 of file class.ilFileUploadSettings.php.
References settings().
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);
◆ getConcurrentUploads()
static ilFileUploadSettings::getConcurrentUploads |
( |
| ) |
|
|
static |
◆ getInstance()
static ilFileUploadSettings::getInstance |
( |
| ) |
|
|
staticprivate |
◆ isDragAndDropUploadEnabled()
static ilFileUploadSettings::isDragAndDropUploadEnabled |
( |
| ) |
|
|
static |
◆ isRepositoryDragAndDropUploadEnabled()
static ilFileUploadSettings::isRepositoryDragAndDropUploadEnabled |
( |
| ) |
|
|
static |
◆ setConcurrentUploads()
static ilFileUploadSettings::setConcurrentUploads |
( |
|
$newValue | ) |
|
|
static |
Sets the number of files that can be uploaded at the same time.
- Parameters
-
- Returns
- void
Definition at line 113 of file class.ilFileUploadSettings.php.
References $instance.
Referenced by ilObjFileAccessSettingsGUI\saveUploadSettings().
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;
◆ setDragAndDropUploadEnabled()
static ilFileUploadSettings::setDragAndDropUploadEnabled |
( |
|
$newValue | ) |
|
|
static |
◆ setRepositoryDragAndDropUploadEnabled()
static ilFileUploadSettings::setRepositoryDragAndDropUploadEnabled |
( |
|
$newValue | ) |
|
|
static |
◆ $concurrentUploads
ilFileUploadSettings::$concurrentUploads = self::CONCURRENT_UPLOADS_DEFAULT |
|
private |
◆ $dndUploadEnabled
ilFileUploadSettings::$dndUploadEnabled = true |
|
private |
◆ $instance
ilFileUploadSettings::$instance = null |
|
staticprivate |
◆ $repositoryDndUploadEnabled
ilFileUploadSettings::$repositoryDndUploadEnabled = true |
|
private |
◆ $settings
ilFileUploadSettings::$settings = null |
|
private |
◆ CONCURRENT_UPLOADS_DEFAULT
const ilFileUploadSettings::CONCURRENT_UPLOADS_DEFAULT = 3 |
◆ CONCURRENT_UPLOADS_MAX
const ilFileUploadSettings::CONCURRENT_UPLOADS_MAX = 10 |
The documentation for this class was generated from the following file: