ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilResourceCollectionGUI Class Reference
+ Inheritance diagram for ilResourceCollectionGUI:
+ Collaboration diagram for ilResourceCollectionGUI:

Public Member Functions

 __construct (private Configuration $view_configuration)
 
 executeCommand ()
 
 upload ()
 
 getFileIdentifierParameterName ()
 
 getUploadURL ()
 
 getFileRemovalURL ()
 
 getExistingFileInfoURL ()
 
 getInfoForExistingFiles (array $file_ids)
 
 getInfoResult (string $identifier)
 
 supportsChunkedUploads ()
 
 getFileIdentifierParameterName ()
 
 getUploadURL ()
 
 getFileRemovalURL ()
 
 getExistingFileInfoURL ()
 
 getInfoForExistingFiles (array $file_ids)
 
 getInfoResult (string $identifier)
 
 supportsChunkedUploads ()
 

Data Fields

const P_RESOURCE_ID = 'resource_id'
 
const P_RESOURCE_IDS = 'resource_ids'
 
const CMD_INDEX = 'index'
 
const CMD_INFO = 'info'
 
const CMD_UPLOAD = 'upload'
 
const CMD_POST_UPLOAD = 'postUpload'
 
const CMD_REMOVE = 'remove'
 
const CMD_DOWNLOAD = 'download'
 
const CMD_UNZIP = 'unzip'
 
const CMD_EDIT = 'rename'
 
const CMD_RENDER_CONFIRM_REMOVE = 'renderConfirmRemove'
 
const CMD_STORE = 'store'
 
- Data Fields inherited from ILIAS\UI\Component\Input\Field\UploadHandler
const DEFAULT_FILE_ID_PARAMETER = 'file_id'
 

Protected Member Functions

 checkResourceOrRedirect ()
 
 abortWithPermissionDenied ()
 

Private Member Functions

 index ()
 
 postUpload ()
 
 download ()
 
 unzip ()
 
 edit ()
 
 store ()
 
 renderConfirmRemove ()
 
 remove ()
 
 getResourceIdsFromRequest ()
 

Private Attributes

ilCtrlInterface $ctrl
 
ilGlobalTemplateInterface $main_tpl
 
Request $view_request
 
ViewFactory $view_factory
 
Renderer $ui_renderer
 
Factory $refinery
 
Services $http
 
ilLanguage $language
 
ILIAS ResourceStorage Services $irss
 
ActionBuilder $action_builder
 
ViewControlBuilder $view_control_builder
 
ILIAS UI Factory $ui_factory
 
FileUpload $upload
 
Archives $archive
 
PreviewDefinition $preview_definition
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilResourceCollectionGUI::__construct ( private Configuration  $view_configuration)
final

Definition at line 80 of file class.ilResourceCollectionGUI.php.

82 {
83 global $DIC;
84 $this->ctrl = $DIC->ctrl();
85 $this->main_tpl = $DIC->ui()->mainTemplate();
86 $this->ui_renderer = $DIC->ui()->renderer();
87 $this->ui_factory = $DIC->ui()->factory();
88 $this->http = $DIC->http();
89 $this->refinery = $DIC->refinery();
90 $this->language = $DIC->language();
91 $this->language->loadLanguageModule('irss');
92 $this->irss = $DIC->resourceStorage();
93 $this->upload = $DIC->upload();
94 $this->archive = $DIC->archives();
95 $this->preview_definition = new PreviewDefinition();
96
97 $this->view_request = new Request(
98 $DIC->ctrl(),
99 $DIC->http()->wrapper()->query(),
100 $this->view_configuration
101 );
102
103 $data_provider = new TableDataProvider($this->view_request);
104
105 $this->action_builder = new ActionBuilder(
106 $this->view_request,
107 $this->ctrl,
108 $DIC->ui()->factory(),
109 $DIC->language(),
110 $this->irss
111 );
112
114 $this->view_request,
115 $data_provider,
116 $this->ctrl,
117 $DIC->ui()->factory(),
118 $DIC->language()
119 );
120
121 $upload_builder = new UploadBuilder(
122 $this->view_request,
123 $this->ctrl,
124 $DIC->ui()->factory(),
125 $DIC->language(),
126 $this
127 );
128
129 $this->view_factory = new ViewFactory(
130 $data_provider,
131 $this->action_builder,
133 $upload_builder
134 );
135 }
static http()
Fetches the global http state from ILIAS.
global $DIC
Definition: shib_login.php:26

References $DIC, $view_control_builder, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\UI\examples\Symbol\Glyph\Language\language(), ILIAS\Repository\refinery(), and upload().

+ Here is the call graph for this function:

Member Function Documentation

◆ abortWithPermissionDenied()

ilResourceCollectionGUI::abortWithPermissionDenied ( )
protected

Definition at line 152 of file class.ilResourceCollectionGUI.php.

152 : void
153 {
154 $this->main_tpl->setOnScreenMessage('failure', $this->language->txt('msg_no_perm_read'), true);
155 $this->ctrl->redirect($this, self::CMD_INDEX);
156 }

References ILIAS\Repository\ctrl(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().

Referenced by checkResourceOrRedirect(), edit(), postUpload(), remove(), renderConfirmRemove(), store(), unzip(), and upload().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkResourceOrRedirect()

ilResourceCollectionGUI::checkResourceOrRedirect ( )
protected
Returns
ResourceIdentification
Exceptions
ilCtrlException

Definition at line 143 of file class.ilResourceCollectionGUI.php.

144 {
145 $rid = $this->getResourceIdsFromRequest()[0] ?? null;
146 if ($rid === null || !$this->view_request->getCollection()->isIn($rid)) {
148 }
149 return $rid;
150 }

References abortWithPermissionDenied(), and getResourceIdsFromRequest().

Referenced by download(), edit(), store(), and unzip().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ download()

ilResourceCollectionGUI::download ( )
private

Definition at line 267 of file class.ilResourceCollectionGUI.php.

267 : void
268 {
269 $rid = $this->checkResourceOrRedirect();
270 $this->irss->consume()->download($rid)->run();
271 }

References checkResourceOrRedirect().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ edit()

ilResourceCollectionGUI::edit ( )
private

Definition at line 308 of file class.ilResourceCollectionGUI.php.

308 : void
309 {
310 if (!$this->view_request->canUserAdministrate()) {
312 return;
313 }
314 $rid = $this->checkResourceOrRedirect();
315 $this->ctrl->setParameter(
316 $this,
317 self::P_RESOURCE_ID,
318 $this->hash($rid->serialize())
319 );
320
321 // build simple form
322 $form = new EditForm(
323 $this->view_request,
324 $rid
325 );
326
327 $modal = $this->ui_factory->modal()->roundtrip(
328 $this->language->txt('edit'),
329 null,
330 $form->getFields(),
331 $this->ctrl->getLinkTarget($this, self::CMD_STORE)
332 );
333
334 $signal = $modal->getForm()->getSubmitSignal();
335
336 $stream = Streams::ofString(
337 $this->ui_renderer->renderAsync(
338 $modal
339 )
340 );
341
342 $this->http->saveResponse($this->http->response()->withBody($stream));
343 $this->http->sendResponse();
344 $this->http->close();
345 }

References abortWithPermissionDenied(), checkResourceOrRedirect(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilResourceCollectionGUI::executeCommand ( )
final

Definition at line 158 of file class.ilResourceCollectionGUI.php.

158 : void
159 {
160 if ($this->view_request->handleViewTitle()) {
161 $title = $this->view_request->getTitle();
162 if ($title !== null) {
163 $this->main_tpl->setTitle($title);
164 }
165 $description = $this->view_request->getDescription();
166 if ($description !== null) {
167 $this->main_tpl->setDescription($description);
168 }
169 }
170
171 $this->view_request->init($this);
172
173 switch ($this->ctrl->getCmd(self::CMD_INDEX)) {
174 case self::CMD_INDEX:
175 $this->index();
176 break;
177 case self::CMD_UPLOAD:
178 $this->upload();
179 break;
181 $this->postUpload();
182 break;
183 case self::CMD_REMOVE:
184 $this->remove();
185 break;
187 $this->download();
188 break;
189 case self::CMD_UNZIP:
190 $this->unzip();
191 break;
193 $this->renderConfirmRemove();
194 break;
195 case self::CMD_EDIT:
196 $this->edit();
197 break;
198 case self::CMD_STORE:
199 $this->store();
200 break;
201 }
202 }

References CMD_DOWNLOAD, CMD_EDIT, CMD_INDEX, CMD_POST_UPLOAD, CMD_REMOVE, CMD_RENDER_CONFIRM_REMOVE, CMD_STORE, CMD_UNZIP, CMD_UPLOAD, ILIAS\Repository\ctrl(), download(), edit(), index(), postUpload(), renderConfirmRemove(), store(), unzip(), and upload().

+ Here is the call graph for this function:

◆ getExistingFileInfoURL()

ilResourceCollectionGUI::getExistingFileInfoURL ( )
Returns
string of the URL where in GUI existing files are handled. The URL is called by GET with a field with name from getFileIdentifierParameterName() and the FileID of the desired file. Return a FI

Implements ILIAS\UI\Component\Input\Field\UploadHandler.

Definition at line 501 of file class.ilResourceCollectionGUI.php.

501 : string
502 {
503 return $this->ctrl->getLinkTarget($this, self::CMD_INFO);
504 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ getFileIdentifierParameterName()

ilResourceCollectionGUI::getFileIdentifierParameterName ( )
Returns
string defaults to self::DEFAULT_FILE_ID_PARAMETER

Implements ILIAS\UI\Component\Input\Field\UploadHandler.

Definition at line 486 of file class.ilResourceCollectionGUI.php.

486 : string
487 {
488 return self::P_RESOURCE_ID;
489 }

References P_RESOURCE_ID.

◆ getFileRemovalURL()

ilResourceCollectionGUI::getFileRemovalURL ( )
Returns
string of the URL where in GUI deleted files are handled. The URL is called by POST with a field with name from getFileIdentifierParameterName() and the FileID of the deleted file.

Implements ILIAS\UI\Component\Input\Field\UploadHandler.

Definition at line 496 of file class.ilResourceCollectionGUI.php.

496 : string
497 {
498 return '';
499 }

◆ getInfoForExistingFiles()

ilResourceCollectionGUI::getInfoForExistingFiles ( array  $file_ids)
Parameters
array$file_ids
Returns
BasicFileInfoResult[]

Implements ILIAS\UI\Component\Input\Field\UploadHandler.

Definition at line 506 of file class.ilResourceCollectionGUI.php.

506 : array
507 {
508 return [];
509 }

◆ getInfoResult()

ilResourceCollectionGUI::getInfoResult ( string  $identifier)
Returns
null|FileInfoResult for the file with the given identifier or null if the file does not exist.

Implements ILIAS\UI\Component\Input\Field\UploadHandler.

Definition at line 511 of file class.ilResourceCollectionGUI.php.

512 {
513 return null;
514 }

◆ getResourceIdsFromRequest()

ilResourceCollectionGUI::getResourceIdsFromRequest ( )
private
Returns
ResourceIdentification[]

Definition at line 430 of file class.ilResourceCollectionGUI.php.

430 : array
431 {
432 $token = $this->action_builder->getUrlToken();
433 $wrapper = $this->http->wrapper();
434 $to_string = $this->refinery->kindlyTo()->string();
435 $to_array_of_string = $this->refinery->to()->listOf($to_string);
436 $rid_string = null;
437
438 if ($wrapper->query()->has($token->getName())) {
439 try {
440 $rid_string = $wrapper->query()->retrieve(
441 $token->getName(),
442 $to_string
443 );
444 $rid_strings = explode(',', (string) $rid_string);
446 $rid_strings = $wrapper->query()->retrieve(
447 $token->getName(),
448 $to_array_of_string
449 );
450 }
451 }
452
453 if ($wrapper->post()->has('interruptive_items')) {
454 $rid_strings = $wrapper->post()->retrieve(
455 'interruptive_items',
456 $to_array_of_string
457 );
458 }
459
460 if (empty($rid_strings)) {
461 // try single resource
462 $rid_strings = $this->http->wrapper()->query()->has(self::P_RESOURCE_ID)
463 ? [$this->http->wrapper()->query()->retrieve(self::P_RESOURCE_ID, $this->refinery->kindlyTo()->string())]
464 : [];
465 }
466
467 if (isset($rid_strings[0]) && $rid_strings[0] === 'ALL_OBJECTS') {
468 return $this->view_request->getCollection()->getResourceIdentifications();
469 }
470
471 if ($rid_strings === []) {
472 return [];
473 }
474 $resource_identifications = [];
475 foreach ($rid_strings as $rid_string) {
476 $resource_identification = $this->irss->manage()->find($this->unhash($rid_string));
477 if ($resource_identification === null) {
478 continue;
479 }
480 $resource_identifications[] = $resource_identification;
481 }
482 return $resource_identifications;
483 }
$token
Definition: xapitoken.php:70

References $token, ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().

Referenced by checkResourceOrRedirect(), remove(), and renderConfirmRemove().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getUploadURL()

ilResourceCollectionGUI::getUploadURL ( )
Returns
string of the URL where dropped files are sent to. This URL must make sure the upload is handled and a \ILIAS\FileUpload\Handler\HandlerResult is returned as JSON.

Implements ILIAS\UI\Component\Input\Field\UploadHandler.

Definition at line 491 of file class.ilResourceCollectionGUI.php.

491 : string
492 {
493 return $this->ctrl->getLinkTarget($this, self::CMD_UPLOAD);
494 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ index()

ilResourceCollectionGUI::index ( )
private

Definition at line 206 of file class.ilResourceCollectionGUI.php.

206 : void
207 {
208 $provider = $this->view_factory->getComponentProvider($this->view_request);
209 $components = [];
210 foreach ($provider->getComponents() as $component) {
211 $components[] = $component;
212 }
213
214 $this->main_tpl->setContent($this->ui_renderer->render($components));
215 }
$components
$provider
Definition: ltitoken.php:80

References $components, and $provider.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ postUpload()

ilResourceCollectionGUI::postUpload ( )
private

Definition at line 257 of file class.ilResourceCollectionGUI.php.

257 : void
258 {
259 if (!$this->view_request->canUserUplaod()) {
261 return;
262 }
263 $this->main_tpl->setOnScreenMessage('success', $this->language->txt('rids_appended'), true);
264 $this->ctrl->redirect($this, self::CMD_INDEX);
265 }

References abortWithPermissionDenied(), ILIAS\Repository\ctrl(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().

Referenced by executeCommand(), and unzip().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ remove()

ilResourceCollectionGUI::remove ( )
private

Definition at line 397 of file class.ilResourceCollectionGUI.php.

397 : void
398 {
399 if (!$this->view_request->canUserAdministrate()) {
401 return;
402 }
403 $rids = $this->getResourceIdsFromRequest();
404 if (empty($rids)) {
405 $this->main_tpl->setOnScreenMessage('failure', $this->language->txt('msg_no_perm_read'), true);
406 $this->ctrl->redirect($this, self::CMD_INDEX);
407 return;
408 }
409 foreach ($rids as $rid) {
410 if (!$this->view_request->getCollection()->isIn($rid)) {
411 $this->main_tpl->setOnScreenMessage('failure', $this->language->txt('msg_no_perm_read'), true);
412 $this->ctrl->redirect($this, self::CMD_INDEX);
413 return;
414 }
415 }
416
417 foreach ($rids as $rid) {
418 $this->irss->manage()->remove($rid, $this->view_configuration->getStakeholder());
419 }
420
421 $this->main_tpl->setOnScreenMessage('success', $this->language->txt('rids_deleted'), true);
422 $this->ctrl->redirect($this, self::CMD_INDEX);
423 }

References abortWithPermissionDenied(), ILIAS\Repository\ctrl(), getResourceIdsFromRequest(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().

+ Here is the call graph for this function:

◆ renderConfirmRemove()

ilResourceCollectionGUI::renderConfirmRemove ( )
private

Definition at line 367 of file class.ilResourceCollectionGUI.php.

367 : void
368 {
369 if (!$this->view_request->canUserAdministrate()) {
371 return;
372 }
373 $rids = $this->getResourceIdsFromRequest();
374 $stream = Streams::ofString(
375 $this->ui_renderer->render(
376 $this->ui_factory->modal()->interruptive(
377 $this->language->txt('action_remove_resource'),
378 $this->language->txt('action_remove_resource_msg'),
379 $this->ctrl->getLinkTarget($this, self::CMD_REMOVE)
380 )->withAffectedItems(
381 array_map(function (ResourceIdentification $rid): Standard {
382 $revision = $this->irss->manage()->getCurrentRevision($rid);
383
384 return $this->ui_factory->modal()->interruptiveItem()->standard(
385 $this->hash($rid->serialize()),
386 $revision->getTitle()
387 );
388 }, $rids)
389 )
390 )
391 );
392 $this->http->saveResponse($this->http->response()->withBody($stream));
393 $this->http->sendResponse();
394 $this->http->close();
395 }

References abortWithPermissionDenied(), getResourceIdsFromRequest(), ILIAS\FileDelivery\http(), ILIAS\ResourceStorage\Identification\AbstractIdentification\serialize(), and ILIAS\UI\examples\MainControls\Slate\Notification\standard().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ store()

ilResourceCollectionGUI::store ( )
private

Definition at line 347 of file class.ilResourceCollectionGUI.php.

347 : void
348 {
349 if (!$this->view_request->canUserAdministrate()) {
351 return;
352 }
353 $rid = $this->checkResourceOrRedirect();
354 $form = (new EditForm(
355 $this->view_request,
356 $rid
357 ))->getAsForm($this->ctrl->getLinkTarget($this, self::CMD_STORE))
358 ->withRequest(
359 $this->http->request()
360 );
361 // Store the data
362 $form->getData();
363 $this->main_tpl->setOnScreenMessage('success', $this->language->txt('rids_updated'), true);
364 $this->ctrl->redirect($this, self::CMD_INDEX);
365 }

References abortWithPermissionDenied(), checkResourceOrRedirect(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ supportsChunkedUploads()

ilResourceCollectionGUI::supportsChunkedUploads ( )
Returns
bool if this uploadhandler chan handle Chunked Uploads. These come in multiple requests and must be combined to a single file. If your UploadHandler can handle Chunked Uploads, you can use a UI\Component\Input\Field\Upload\File with .

Implements ILIAS\UI\Component\Input\Field\UploadHandler.

Definition at line 516 of file class.ilResourceCollectionGUI.php.

516 : bool
517 {
518 return false;
519 }

◆ unzip()

ilResourceCollectionGUI::unzip ( )
private

Definition at line 273 of file class.ilResourceCollectionGUI.php.

273 : void
274 {
275 if (!$this->view_request->canUserAdministrate()) {
277 return;
278 }
279 $rid = $this->checkResourceOrRedirect();
280 $zip_stream = $this->irss->consume()->stream($rid)->getStream();
281
282 $collection = $this->view_request->getCollection();
283
284 $unzip_options = $this->archive->unzipOptions()
285 ->withDirectoryHandling(ZipDirectoryHandling::FLAT_STRUCTURE);
286
287 foreach ($this->archive->unzip($zip_stream, $unzip_options)->getFileStreams() as $stream) {
288 $rid = $this->irss->manage()->stream(
289 Streams::ofString($stream->getContents()),
290 $this->view_configuration->getStakeholder(),
291 basename((string) $stream->getMetadata()['uri'])
292 );
293 $collection->add($rid);
294
295 // ensure flavour
296 try {
297 $this->irss->flavours()->ensure(
298 $rid,
299 $this->preview_definition
300 );
301 } catch (\Throwable) {
302 }
303 }
304 $this->irss->collection()->store($collection);
305 $this->postUpload();
306 }
@ FLAT_STRUCTURE
@description Will keep the top directory of the ZIP file if there is one (simple unzip).

References abortWithPermissionDenied(), checkResourceOrRedirect(), ILIAS\Filesystem\Util\Archive\FLAT_STRUCTURE, and postUpload().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ upload()

ilResourceCollectionGUI::upload ( )

Definition at line 217 of file class.ilResourceCollectionGUI.php.

217 : void
218 {
219 if (!$this->view_request->canUserUplaod()) {
221 return;
222 }
223 $this->upload->process();
224 if (!$this->upload->hasUploads()) {
225 return;
226 }
227 $collection = $this->view_request->getCollection();
228 foreach ($this->upload->getResults() as $result) {
229 if (!$result->isOK()) {
230 continue;
231 }
232 $rid = $this->irss->manage()->upload(
233 $result,
234 $this->view_configuration->getStakeholder()
235 );
236 $collection->add($rid);
237
238 // ensure flavour
239 $this->irss->flavours()->ensure(
240 $rid,
241 $this->preview_definition
242 );
243 }
244 $this->irss->collection()->store($collection);
245 $upload_result = new BasicHandlerResult(
246 self::P_RESOURCE_ID,
247 BasicHandlerResult::STATUS_OK,
248 $rid->serialize(),
249 ''
250 );
251 $response = $this->http->response()->withBody(Streams::ofString(json_encode($upload_result)));
252 $this->http->saveResponse($response);
253 $this->http->sendResponse();
254 $this->http->close();
255 }
$response
Definition: xapitoken.php:93

References $response, abortWithPermissionDenied(), ILIAS\FileDelivery\http(), and upload().

Referenced by __construct(), executeCommand(), and upload().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $action_builder

ActionBuilder ilResourceCollectionGUI::$action_builder
private

Definition at line 73 of file class.ilResourceCollectionGUI.php.

◆ $archive

Archives ilResourceCollectionGUI::$archive
private

Definition at line 77 of file class.ilResourceCollectionGUI.php.

◆ $ctrl

ilCtrlInterface ilResourceCollectionGUI::$ctrl
private

Definition at line 64 of file class.ilResourceCollectionGUI.php.

◆ $http

Services ilResourceCollectionGUI::$http
private

Definition at line 70 of file class.ilResourceCollectionGUI.php.

◆ $irss

ILIAS ResourceStorage Services ilResourceCollectionGUI::$irss
private

Definition at line 72 of file class.ilResourceCollectionGUI.php.

◆ $language

ilLanguage ilResourceCollectionGUI::$language
private

Definition at line 71 of file class.ilResourceCollectionGUI.php.

◆ $main_tpl

ilGlobalTemplateInterface ilResourceCollectionGUI::$main_tpl
private

Definition at line 65 of file class.ilResourceCollectionGUI.php.

◆ $preview_definition

PreviewDefinition ilResourceCollectionGUI::$preview_definition
private

Definition at line 78 of file class.ilResourceCollectionGUI.php.

◆ $refinery

Factory ilResourceCollectionGUI::$refinery
private

Definition at line 69 of file class.ilResourceCollectionGUI.php.

◆ $ui_factory

ILIAS UI Factory ilResourceCollectionGUI::$ui_factory
private

Definition at line 75 of file class.ilResourceCollectionGUI.php.

◆ $ui_renderer

Renderer ilResourceCollectionGUI::$ui_renderer
private

Definition at line 68 of file class.ilResourceCollectionGUI.php.

◆ $upload

FileUpload ilResourceCollectionGUI::$upload
private

Definition at line 76 of file class.ilResourceCollectionGUI.php.

◆ $view_control_builder

ViewControlBuilder ilResourceCollectionGUI::$view_control_builder
private

Definition at line 74 of file class.ilResourceCollectionGUI.php.

Referenced by __construct().

◆ $view_factory

ViewFactory ilResourceCollectionGUI::$view_factory
private

Definition at line 67 of file class.ilResourceCollectionGUI.php.

◆ $view_request

Request ilResourceCollectionGUI::$view_request
private

Definition at line 66 of file class.ilResourceCollectionGUI.php.

◆ CMD_DOWNLOAD

const ilResourceCollectionGUI::CMD_DOWNLOAD = 'download'

◆ CMD_EDIT

const ilResourceCollectionGUI::CMD_EDIT = 'rename'

◆ CMD_INDEX

◆ CMD_INFO

const ilResourceCollectionGUI::CMD_INFO = 'info'

Definition at line 54 of file class.ilResourceCollectionGUI.php.

◆ CMD_POST_UPLOAD

const ilResourceCollectionGUI::CMD_POST_UPLOAD = 'postUpload'

◆ CMD_REMOVE

const ilResourceCollectionGUI::CMD_REMOVE = 'remove'

Definition at line 57 of file class.ilResourceCollectionGUI.php.

Referenced by executeCommand().

◆ CMD_RENDER_CONFIRM_REMOVE

const ilResourceCollectionGUI::CMD_RENDER_CONFIRM_REMOVE = 'renderConfirmRemove'

◆ CMD_STORE

const ilResourceCollectionGUI::CMD_STORE = 'store'

Definition at line 63 of file class.ilResourceCollectionGUI.php.

Referenced by executeCommand().

◆ CMD_UNZIP

const ilResourceCollectionGUI::CMD_UNZIP = 'unzip'

◆ CMD_UPLOAD

const ilResourceCollectionGUI::CMD_UPLOAD = 'upload'

Definition at line 55 of file class.ilResourceCollectionGUI.php.

Referenced by executeCommand().

◆ P_RESOURCE_ID

const ilResourceCollectionGUI::P_RESOURCE_ID = 'resource_id'

◆ P_RESOURCE_IDS

const ilResourceCollectionGUI::P_RESOURCE_IDS = 'resource_ids'

Definition at line 51 of file class.ilResourceCollectionGUI.php.


The documentation for this class was generated from the following file: