19 declare(strict_types=1);
59 $this->ui_factory = $DIC->ui()->factory();
61 $this->
ctrl = $DIC->ctrl();
67 $this->add_directory_modal = $this->ui_factory->modal()->roundtrip(
68 $this->
language->txt(
'create_directory'),
71 $this->ui_factory->input()->field()->text(
72 $this->
language->txt(
'directory_name'),
73 $this->
language->txt(
'directory_name_info'),
91 if ($this->show_paths) {
92 $components[] = $this->ui_factory->messageBox()->info(
93 implode(
'<br>', array_keys($this->request->getWrapper()->getData()))
104 $this->
language->txt(
'create_directory'),
105 $this->add_directory_modal->getShowSignal()
108 $this->
language->txt(
'download_zip'),
118 $this->
language->txt(self::ACTION_DOWNLOAD),
126 $single_actions[self::ACTION_REMOVE] =
new SingleAction(
127 $this->
language->txt(self::ACTION_REMOVE),
135 $this->
language->txt(self::ACTION_UNZIP),
140 [
'application/zip',
'application/x-zip-compressed']
144 return $single_actions;
151 \ilContainerResourceGUI::class,
161 ILIAS_HTTP_PATH .
'/' . $this->
ctrl->getLinkTargetByClass(
const CMD_RENDER_CONFIRM_REMOVE
This is how the factory for UI elements looks.
RoundTrip $add_directory_modal
buildURI(string $command)
getSingleActions(Request $view_request)
language()
description: > Example for rendring a language glyph.
__construct(private Request $request)
retrieveURI(string $class, string $command)