19 declare(strict_types=1);
44 public function __construct(
int $target_ref_id,
string $content = null)
48 $this->definition = $DIC[
'objDefinition'];
50 $this->
language->loadLanguageModule(
'file');
51 $this->
access = $DIC->access();
52 $this->
ctrl = $DIC->ctrl();
53 $this->
ui = $DIC->ui();
64 if ($active === null) {
72 $this->
ctrl->setParameterByClass(
77 $this->
ctrl->setParameterByClass(
82 $this->
ctrl->setParameterByClass(
89 $post_url = $this->
ctrl->getFormActionByClass(
90 [ilRepositoryGUI::class, ilObjFileGUI::class],
94 $this->
ctrl->clearParameterByClass(ilObjFileGUI::class,
'new_type');
97 $additional_input = null;
99 $additional_input = $this->getCopyrightSelectionInput(
'set_license_for_all_files');
103 $dropzone = $this->
ui->factory()->dropzone()->file()->wrapper(
104 $this->
language->txt(
'upload_files'),
106 $this->
ui->factory()->legacy($this->content ??
''),
107 $this->
ui->factory()->input()->field()->file(
108 $this->upload_handler,
109 $this->
language->txt(
'upload_files'),
111 $this->
ui->factory()->input()->field()->group([
115 $this->getEmptyStringToNullTransformation()
120 $this->getEmptyStringToNullTransformation()
130 $this->
language->txt(
'upload_files')
138 if ($this->definition->isContainer($obj_type) && $obj_type !==
"orgu") {
139 return $this->
access->checkAccess(
'create_file',
'', $this->target_ref_id,
'file');
147 return $this->
ui->renderer()->render($this->getDropzone());
152 return $this->
ui->factory();
Class ChatMainBarProvider .
UploadHandler $upload_handler
ILIAS Refinery Factory $refinery
parses the objects.xml it handles the xml-description of all ilias objects
Provides fluid interface to RBAC services.
__construct(int $target_ref_id, string $content=null)
isUploadAllowed(string $obj_type)
const UPLOAD_ORIGIN_DROPZONE
const PARAM_UPLOAD_ORIGIN
isCopyrightSelectionActive()
ilObjectDefinition $definition