ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMediaCreationGUI Class Reference
+ Collaboration diagram for ilMediaCreationGUI:

Public Member Functions

 __construct (array $accept_types, closure $after_upload, closure $after_url_saving, closure $after_pool_insert)
 Constructor. More...
 
 setAllSuffixes ($a_val)
 Set All suffixes. More...
 
 getAllSuffixes ()
 Get All suffixes. More...
 
 setAllMimeTypes ($a_val)
 Set All mime types. More...
 
 getAllMimeTypes ()
 Get All mime types. More...
 
 executeCommand ()
 Execute command. More...
 
 initUploadForm ()
 Init upload form. More...
 
 initUrlForm ()
 Init url form. More...
 
 initPoolSelection ()
 Init pool selectio form. More...
 
 listPoolItems ()
 Insert media object from pool. More...
 
 selectPool ()
 Select concrete pool. More...
 
 poolSelection ()
 Pool Selection. More...
 

Data Fields

const TYPE_VIDEO = 1
 
const TYPE_AUDIO = 2
 
const TYPE_IMAGE = 3
 
const TYPE_OTHER = 4
 
const TYPE_ALL = 5
 
const POOL_VIEW_FOLDER = "fold"
 
const POOL_VIEW_ALL = "all"
 

Protected Member Functions

 getSuffixes ()
 Get suffixes. More...
 
 getMimeTypes ()
 Get mimes. More...
 
 creationSelection ()
 Creation selection. More...
 
 uploadFile ()
 Upload file. More...
 
 cancel ()
 Cancel. More...
 
 saveUrl ()
 Save url. More...
 
 applyFilter ()
 Apply filter. More...
 
 resetFilter ()
 Reset filter. More...
 
 getPoolTable ()
 Get pool table. More...
 
 insertFromPool ()
 Insert media from pool. More...
 

Protected Attributes

 $accept_types = [1,2,3,4]
 
 $lng
 
 $ctrl
 
 $main_tpl
 
 $after_upload
 
 $after_url_saving
 
 $after_pool_insert
 
 $access
 
 $all_suffixes = []
 
 $all_mime_types = []
 
 $ui
 
 $requested_mep
 
 $pool_view = self::POOL_VIEW_FOLDER
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMediaCreationGUI::__construct ( array  $accept_types,
closure  $after_upload,
closure  $after_url_saving,
closure  $after_pool_insert 
)

Constructor.

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

References $_GET, $_POST, $accept_types, $after_pool_insert, $after_upload, $after_url_saving, $DIC, and ui().

83  {
84  global $DIC;
85 
86  $this->lng = $DIC->language();
87  $this->lng->loadLanguageModule("mob");
88  $this->lng->loadLanguageModule("content");
89  $this->access = $DIC->access();
90 
91  $this->ctrl = $DIC->ctrl();
92  $this->main_tpl = $DIC->ui()->mainTemplate();
93  $this->ui = $DIC->ui();
94 
95  $this->accept_types = $accept_types;
96  $this->after_upload = $after_upload;
97  $this->after_url_saving = $after_url_saving;
98  $this->after_pool_insert = $after_pool_insert;
99 
100  $this->ctrl->saveParameter($this, ["mep", "pool_view"]);
101 
102  $this->requested_mep = ((int) $_POST["mep"] > 0)
103  ? (int) $_POST["mep"]
104  : (int) $_GET["mep"];
105 
106  $this->pool_view = (in_array($_GET["pool_view"], [self::POOL_VIEW_FOLDER, self::POOL_VIEW_ALL]))
107  ? $_GET["pool_view"]
108  : self::POOL_VIEW_FOLDER;
109  }
$_GET["client_id"]
global $DIC
Definition: goto.php:24
ui()
Definition: ui.php:5
$_POST["username"]
+ Here is the call graph for this function:

Member Function Documentation

◆ applyFilter()

ilMediaCreationGUI::applyFilter ( )
protected

Apply filter.

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

References getPoolTable().

502  {
503  $mpool_table = $this->getPoolTable();
504  $mpool_table->resetOffset();
505  $mpool_table->writeFilterToSession();
506  $this->ctrl->redirect($this, "listPoolItems");
507  }
getPoolTable()
Get pool table.
+ Here is the call graph for this function:

◆ cancel()

ilMediaCreationGUI::cancel ( )
protected

Cancel.

Definition at line 388 of file class.ilMediaCreationGUI.php.

References $ctrl.

389  {
390  $ctrl = $this->ctrl;
391  $ctrl->returnToParent($this);
392  }

◆ creationSelection()

ilMediaCreationGUI::creationSelection ( )
protected

Creation selection.

Definition at line 209 of file class.ilMediaCreationGUI.php.

References $main_tpl, ilAccordionGUI\FIRST_OPEN, initPoolSelection(), initUploadForm(), and initUrlForm().

210  {
212 
213  $acc = new \ilAccordionGUI();
214  $acc->setBehaviour(\ilAccordionGUI::FIRST_OPEN);
215  $cnt = 1;
216  $forms = [
217  $this->initUploadForm(),
218  $this->initUrlForm(),
219  $this->initPoolSelection()
220  ];
221  foreach ($forms as $form_type => $cf) {
222  $htpl = new \ilTemplate("tpl.creation_acc_head.html", true, true, "Services/Object");
223 
224  // using custom form titles (used for repository plugins)
225  $form_title = "";
226  if (method_exists($this, "getCreationFormTitle")) {
227  $form_title = $this->getCreationFormTitle($form_type);
228  }
229  if (!$form_title) {
230  $form_title = $cf->getTitle();
231  }
232 
233  // move title from form to accordion
234  $htpl->setVariable("TITLE", $this->lng->txt("option") . " " . $cnt . ": " .
235  $form_title);
236  $cf->setTitle(null);
237  $cf->setTitleIcon(null);
238  $cf->setTableWidth("100%");
239 
240  $acc->addItem($htpl->get(), $cf->getHTML());
241 
242  $cnt++;
243  }
244  $main_tpl->setContent($acc->getHTML());
245  }
initUploadForm()
Init upload form.
initPoolSelection()
Init pool selectio form.
+ Here is the call graph for this function:

◆ executeCommand()

ilMediaCreationGUI::executeCommand ( )

Execute command.

Definition at line 184 of file class.ilMediaCreationGUI.php.

References $ctrl, and initPoolSelection().

185  {
186  $ctrl = $this->ctrl;
187 
188  $next_class = $ctrl->getNextClass($this);
189  $cmd = $ctrl->getCmd("creationSelection");
190 
191  switch ($next_class) {
192 
193  case "ilpropertyformgui":
194  $form = $this->initPoolSelection();
195  $ctrl->forwardCommand($form);
196  break;
197 
198  default:
199  if (in_array($cmd, ["creationSelection", "uploadFile", "saveUrl", "cancel", "listPoolItems",
200  "insertFromPool", "poolSelection", "selectPool", "applyFilter", "resetFilter"])) {
201  $this->$cmd();
202  }
203  }
204  }
initPoolSelection()
Init pool selectio form.
+ Here is the call graph for this function:

◆ getAllMimeTypes()

ilMediaCreationGUI::getAllMimeTypes ( )

Get All mime types.

Returns
array

Definition at line 142 of file class.ilMediaCreationGUI.php.

References $all_mime_types.

Referenced by getMimeTypes().

143  {
144  return $this->all_mime_types;
145  }
+ Here is the caller graph for this function:

◆ getAllSuffixes()

ilMediaCreationGUI::getAllSuffixes ( )

Get All suffixes.

Returns
array

Definition at line 124 of file class.ilMediaCreationGUI.php.

References $all_suffixes.

Referenced by getSuffixes().

125  {
126  return $this->all_suffixes;
127  }
+ Here is the caller graph for this function:

◆ getMimeTypes()

ilMediaCreationGUI::getMimeTypes ( )
protected

Get mimes.

Returns
array

Definition at line 168 of file class.ilMediaCreationGUI.php.

References getAllMimeTypes().

Referenced by insertFromPool().

169  {
170  $mimes = [];
171  if (in_array(self::TYPE_ALL, $this->accept_types)) {
172  $mimes = $this->getAllMimeTypes();
173  }
174  if (in_array(self::TYPE_VIDEO, $this->accept_types)) {
175  $mimes[] = "video/vimeo";
176  $mimes[] = "video/mp4";
177  }
178  return $mimes;
179  }
getAllMimeTypes()
Get All mime types.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPoolTable()

ilMediaCreationGUI::getPoolTable ( )
protected

Get pool table.

Parameters

Definition at line 525 of file class.ilMediaCreationGUI.php.

References ilMediaPoolTableGUI\IL_MEP_SELECT.

Referenced by applyFilter(), listPoolItems(), and resetFilter().

526  {
527  $pool = new ilObjMediaPool($this->requested_mep);
528  $mpool_table = new ilMediaPoolTableGUI(
529  $this,
530  "listPoolItems",
531  $pool,
532  "mep_folder",
534  $this->pool_view == self::POOL_VIEW_ALL
535  );
536  $mpool_table->setFilterCommand("applyFilter");
537  $mpool_table->setResetCommand("resetFilter");
538  $mpool_table->setInsertCommand("insertFromPool");
539  return $mpool_table;
540  }
Media pool object.
TableGUI class for recent changes in wiki.
+ Here is the caller graph for this function:

◆ getSuffixes()

ilMediaCreationGUI::getSuffixes ( )
protected

Get suffixes.

Returns
array

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

References getAllSuffixes().

Referenced by initUploadForm().

153  {
154  $suffixes = [];
155  if (in_array(self::TYPE_ALL, $this->accept_types)) {
156  $suffixes = $this->getAllSuffixes();
157  }
158  if (in_array(self::TYPE_VIDEO, $this->accept_types)) {
159  $suffixes[] = "mp4";
160  }
161  return $suffixes;
162  }
getAllSuffixes()
Get All suffixes.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initPoolSelection()

ilMediaCreationGUI::initPoolSelection ( )

Init pool selectio form.

Definition at line 301 of file class.ilMediaCreationGUI.php.

References $ctrl, $lng, ilRepositorySelector2InputGUI\getExplorerGUI(), and ilFormPropertyGUI\setRequired().

Referenced by creationSelection(), and executeCommand().

302  {
303  $ctrl = $this->ctrl;
304  $lng = $this->lng;
305 
306  include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
307  $form = new \ilPropertyFormGUI();
308 
309  // mediacast
310  $mcst = new ilRepositorySelector2InputGUI($lng->txt("obj_mep"), "mep", false);
311  $exp = $mcst->getExplorerGUI();
312  $exp->setSelectableTypes(["mep"]);
313  $exp->setTypeWhiteList(["root", "mep", "cat", "crs", "grp", "fold"]);
314  $mcst->setRequired(true);
315  $form->addItem($mcst);
316 
317  $form->addCommandButton("listPoolItems", $lng->txt("continue"));
318  $form->addCommandButton("cancel", $lng->txt("cancel"));
319 
320  $form->setTitle($lng->txt("mob_choose_from_pool"));
321  $form->setFormAction($ctrl->getFormAction($this));
322 
323  return $form;
324  }
setRequired($a_required)
Set Required.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initUploadForm()

ilMediaCreationGUI::initUploadForm ( )

Init upload form.

Definition at line 250 of file class.ilMediaCreationGUI.php.

References $ctrl, $lng, and getSuffixes().

Referenced by creationSelection(), and uploadFile().

251  {
252  $ctrl = $this->ctrl;
253  $lng = $this->lng;
254 
255  include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
256  $form = new \ilPropertyFormGUI();
257 
258  $fi = new \ilFileInputGUI($lng->txt("file"), "file");
259  $fi->setSuffixes($this->getSuffixes());
260  $fi->setRequired(true);
261  $form->addItem($fi);
262 
263  $form->addCommandButton("uploadFile", $lng->txt("upload"));
264  $form->addCommandButton("cancel", $lng->txt("cancel"));
265 
266  $form->setTitle($lng->txt("mob_upload_file"));
267  $form->setFormAction($ctrl->getFormAction($this));
268 
269  return $form;
270  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initUrlForm()

ilMediaCreationGUI::initUrlForm ( )

Init url form.

Definition at line 275 of file class.ilMediaCreationGUI.php.

References $ctrl, and $lng.

Referenced by creationSelection(), and saveUrl().

276  {
277  $ctrl = $this->ctrl;
278  $lng = $this->lng;
279 
280  include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
281  $form = new \ilPropertyFormGUI();
282 
283  //
284  $ti = new \ilTextInputGUI($lng->txt("mob_url"), "url");
285  $ti->setInfo($lng->txt("mob_url_info"));
286  $ti->setRequired(true);
287  $form->addItem($ti);
288 
289  $form->addCommandButton("saveUrl", $lng->txt("save"));
290  $form->addCommandButton("cancel", $lng->txt("cancel"));
291 
292  $form->setTitle($lng->txt("mob_external_url"));
293  $form->setFormAction($ctrl->getFormAction($this));
294 
295  return $form;
296  }
+ Here is the caller graph for this function:

◆ insertFromPool()

ilMediaCreationGUI::insertFromPool ( )
protected

Insert media from pool.

Definition at line 577 of file class.ilMediaCreationGUI.php.

References $_POST, $after_pool_insert, getMimeTypes(), listPoolItems(), ilMediaPoolItem\lookupForeignId(), and ilUtil\sendFailure().

578  {
579  if (!is_array($_POST["id"])) {
580  ilUtil::sendFailure($this->lng->txt("select_one"));
581  $this->listPoolItems();
582  return;
583  }
584  $mob_ids = [];
585  foreach ($_POST["id"] as $pool_entry_id) {
586  $id = ilMediaPoolItem::lookupForeignId($pool_entry_id);
587  $mob = new ilObjMediaObject((int) $id);
588  if (!in_array($mob->getMediaItem("Standard")->getFormat(), $this->getMimeTypes())) {
589  ilUtil::sendFailure($this->lng->txt("mob_mime_type_not_allowed") . ": " .
590  $mob->getMediaItem("Standard")->getFormat());
591  $this->listPoolItems();
592  return;
593  }
594  $mob_ids[] = $id;
595  }
596  ($this->after_pool_insert)($mob_ids);
597  }
static lookupForeignId($a_id)
Lookup Foreign Id.
Class ilObjMediaObject.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$_POST["username"]
listPoolItems()
Insert media object from pool.
+ Here is the call graph for this function:

◆ listPoolItems()

ilMediaCreationGUI::listPoolItems ( )

Insert media object from pool.

Definition at line 455 of file class.ilMediaCreationGUI.php.

References $access, $ctrl, Vendor\Package\$f, $lng, $main_tpl, $ui, ilObject\_lookupObjId(), ilObject\_lookupType(), and getPoolTable().

Referenced by insertFromPool().

456  {
457  $ctrl = $this->ctrl;
459  $lng = $this->lng;
460  $ui = $this->ui;
462 
463  if ($this->requested_mep > 0 &&
464  $access->checkAccess("write", "", $this->requested_mep)
465  && ilObject::_lookupType(ilObject::_lookupObjId($this->requested_mep)) == "mep") {
466  $tb = new ilToolbarGUI();
467 
468  // button: select pool
469  $tb->addButton(
470  $lng->txt("cont_switch_to_media_pool"),
471  $ctrl->getLinkTarget($this, "poolSelection")
472  );
473 
474  // view mode: pool view (folders/all media objects)
475  $f = $ui->factory();
476  $lng->loadLanguageModule("mep");
477  $ctrl->setParameter($this, "pool_view", self::POOL_VIEW_FOLDER);
478  $actions[$lng->txt("folders")] = $ctrl->getLinkTarget($this, "listPoolItems");
479  $ctrl->setParameter($this, "pool_view", self::POOL_VIEW_ALL);
480  $actions[$lng->txt("mep_all_mobs")] = $ctrl->getLinkTarget($this, "listPoolItems");
481  $ctrl->setParameter($this, "pool_view", $this->pool_view);
482  $aria_label = $lng->txt("cont_change_pool_view");
483  $view_control = $f->viewControl()->mode($actions, $aria_label)->withActive(($this->pool_view == self::POOL_VIEW_FOLDER)
484  ? $lng->txt("folders") : $lng->txt("mep_all_mobs"));
485  $tb->addSeparator();
486  $tb->addComponent($view_control);
487 
488  $html = $tb->getHTML();
489 
490  $pool_table = $this->getPoolTable();
491 
492  $html .= $pool_table->getHTML();
493 
494  $main_tpl->setContent($html);
495  }
496  }
getPoolTable()
Get pool table.
static _lookupObjId($a_id)
static _lookupType($a_id, $a_reference=false)
lookup object type
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ poolSelection()

ilMediaCreationGUI::poolSelection ( )

Pool Selection.

Definition at line 556 of file class.ilMediaCreationGUI.php.

References $main_tpl.

557  {
559  $exp = new ilPoolSelectorGUI(
560  $this,
561  "poolSelection",
562  null,
563  "selectPool",
564  "",
565  "mep_ref_id"
566  );
567  $exp->setTypeWhiteList(array("root", "cat", "grp", "fold", "crs", "mep"));
568  $exp->setClickableTypes(array('mep'));
569  if (!$exp->handleCommand()) {
570  $main_tpl->setContent($exp->getHTML());
571  }
572  }
Select media pool for adding objects into pages.

◆ resetFilter()

ilMediaCreationGUI::resetFilter ( )
protected

Reset filter.

Definition at line 512 of file class.ilMediaCreationGUI.php.

References getPoolTable().

513  {
514  $mpool_table = $this->getPoolTable();
515  $mpool_table->resetOffset();
516  $mpool_table->resetFilter();
517  $this->ctrl->redirect($this, "listPoolItems");
518  }
getPoolTable()
Get pool table.
+ Here is the call graph for this function:

◆ saveUrl()

ilMediaCreationGUI::saveUrl ( )
protected

Save url.

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

References $after_url_saving, $format, $url, ilObjMediaObject\_getDirectory(), ilObjMediaObject\getMimeType(), and initUrlForm().

398  {
399  $form = $this->initUrlForm();
400 
401  if (!$form->checkInput()) {
402  $form->setValuesByPost();
403  $this->main_tpl->setContent($form->getHTML());
404  } else {
405  $mob = new ilObjMediaObject();
406  $mob->create();
407 
408  //handle standard purpose
409  $mediaItem = new ilMediaItem();
410  $mob->addMediaItem($mediaItem);
411  $mediaItem->setPurpose("Standard");
412 
413  // determine and create mob directory, move uploaded file to directory
414  $mob_dir = ilObjMediaObject::_getDirectory($mob->getId());
415  if (!is_dir($mob_dir)) {
416  $mob->createDirectory();
417  }
418  $locationType = "Reference";
419  $url = $form->getInput("url");
420  $title = $url;
421 
422  // get mime type, if not already set!
424 
425  // set real meta and object data
426  $mediaItem->setFormat($format);
427  $mediaItem->setLocation($url);
428  $mediaItem->setLocationType("Reference");
429  $mediaItem->setHAlign("Left");
430  $mob->setTitle($title);
431  $mob->setDescription($format);
432  /*try {
433  $mob->getExternalMetadata();
434  } catch (Exception $e) {
435  ilUtil::sendFailure($e->getMessage());
436  $form->setValuesByPost();
437  $this->main_tpl->setContent($form->getHTML());
438  return;
439  }*/
440 
441  $long_desc = $mob->getLongDescription();
442  $mob->update();
443 
444  //
445  // @todo: save usage
446  //
447 
448  ($this->after_url_saving)($mob->getId(), $long_desc);
449  }
450  }
static getMimeType($a_file, $a_external=null)
get mime type for file
static _getDirectory($a_mob_id)
Get absolute directory.
Class ilMediaItem Media Item, component of a media object (file or reference)
$format
Definition: metadata.php:218
Class ilObjMediaObject.
$url
+ Here is the call graph for this function:

◆ selectPool()

ilMediaCreationGUI::selectPool ( )

Select concrete pool.

Definition at line 545 of file class.ilMediaCreationGUI.php.

References $_GET, and $ctrl.

546  {
547  $ctrl = $this->ctrl;
548 
549  $ctrl->setParameter($this, "mep", $_GET["mep_ref_id"]);
550  $ctrl->redirect($this, "listPoolItems");
551  }
$_GET["client_id"]

◆ setAllMimeTypes()

ilMediaCreationGUI::setAllMimeTypes (   $a_val)

Set All mime types.

Parameters
array$a_val

Definition at line 133 of file class.ilMediaCreationGUI.php.

134  {
135  $this->all_mime_types = $a_val;
136  }

◆ setAllSuffixes()

ilMediaCreationGUI::setAllSuffixes (   $a_val)

Set All suffixes.

Parameters
array$a_val

Definition at line 115 of file class.ilMediaCreationGUI.php.

Referenced by ilObjMediaCastGUI\executeCommand().

116  {
117  $this->all_suffixes = $a_val;
118  }
+ Here is the caller graph for this function:

◆ uploadFile()

ilMediaCreationGUI::uploadFile ( )
protected

Upload file.

Definition at line 329 of file class.ilMediaCreationGUI.php.

References $after_upload, $format, $location, ilObjMediaObject\_getDirectory(), ilUtil\getASCIIFilename(), ilObjMediaObject\getMimeType(), initUploadForm(), ilUtil\moveUploadedFile(), and ilUtil\renameExecutables().

330  {
331  $form = $this->initUploadForm();
332 
333  if (!$form->checkInput()) {
334  $form->setValuesByPost();
335  $this->main_tpl->setContent($form->getHTML());
336  //$this->creationSelection();
337  } else {
338  $mob = new ilObjMediaObject();
339  $mob->create();
340 
341  //handle standard purpose
342  $mediaItem = new ilMediaItem();
343  $mob->addMediaItem($mediaItem);
344  $mediaItem->setPurpose("Standard");
345 
346  // determine and create mob directory, move uploaded file to directory
347  $mob_dir = ilObjMediaObject::_getDirectory($mob->getId());
348  if (!is_dir($mob_dir)) {
349  $mob->createDirectory();
350  }
351  $file_name = ilUtil::getASCIIFilename($_FILES['file']["name"]);
352  $file_name = str_replace(" ", "_", $file_name);
353 
354  $file = $mob_dir . "/" . $file_name;
355  $title = $file_name;
356  $locationType = "LocalFile";
357  $location = $title;
358  ilUtil::moveUploadedFile($_FILES['file']['tmp_name'], $file_name, $file);
359  ilUtil::renameExecutables($mob_dir);
360 
361  // get mime type, if not already set!
362  $format = ilObjMediaObject::getMimeType($file, false);
363 
364  // set real meta and object data
365  $mediaItem->setFormat($format);
366  $mediaItem->setLocation($location);
367  $mediaItem->setLocationType($locationType);
368  $mediaItem->setHAlign("Left");
369  $mob->setTitle($title);
370  $mob->setDescription($format);
371 
372  $mob->update();
373 
374  $mob = new ilObjMediaObject($mob->getId());
375  $mob->generatePreviewPic(320, 240);
376 
377  //
378  // @todo: save usage
379  //
380 
381  ($this->after_upload)($mob->getId());
382  }
383  }
static getMimeType($a_file, $a_external=null)
get mime type for file
$location
Definition: buildRTE.php:44
initUploadForm()
Init upload form.
static getASCIIFilename($a_filename)
convert utf8 to ascii filename
static _getDirectory($a_mob_id)
Get absolute directory.
static moveUploadedFile($a_file, $a_name, $a_target, $a_raise_errors=true, $a_mode="move_uploaded")
move uploaded file
Class ilMediaItem Media Item, component of a media object (file or reference)
$format
Definition: metadata.php:218
Class ilObjMediaObject.
static renameExecutables($a_dir)
Rename uploaded executables for security reasons.
+ Here is the call graph for this function:

Field Documentation

◆ $accept_types

ilMediaCreationGUI::$accept_types = [1,2,3,4]
protected

Definition at line 20 of file class.ilMediaCreationGUI.php.

Referenced by __construct().

◆ $access

ilMediaCreationGUI::$access
protected

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

Referenced by listPoolItems().

◆ $after_pool_insert

ilMediaCreationGUI::$after_pool_insert
protected

Definition at line 50 of file class.ilMediaCreationGUI.php.

Referenced by __construct(), and insertFromPool().

◆ $after_upload

ilMediaCreationGUI::$after_upload
protected

Definition at line 40 of file class.ilMediaCreationGUI.php.

Referenced by __construct(), and uploadFile().

◆ $after_url_saving

ilMediaCreationGUI::$after_url_saving
protected

Definition at line 45 of file class.ilMediaCreationGUI.php.

Referenced by __construct(), and saveUrl().

◆ $all_mime_types

ilMediaCreationGUI::$all_mime_types = []
protected

Definition at line 58 of file class.ilMediaCreationGUI.php.

Referenced by getAllMimeTypes().

◆ $all_suffixes

ilMediaCreationGUI::$all_suffixes = []
protected

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

Referenced by getAllSuffixes().

◆ $ctrl

ilMediaCreationGUI::$ctrl
protected

◆ $lng

ilMediaCreationGUI::$lng
protected

◆ $main_tpl

ilMediaCreationGUI::$main_tpl
protected

Definition at line 35 of file class.ilMediaCreationGUI.php.

Referenced by creationSelection(), listPoolItems(), and poolSelection().

◆ $pool_view

ilMediaCreationGUI::$pool_view = self::POOL_VIEW_FOLDER
protected

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

◆ $requested_mep

ilMediaCreationGUI::$requested_mep
protected

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

◆ $ui

ilMediaCreationGUI::$ui
protected

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

Referenced by listPoolItems().

◆ POOL_VIEW_ALL

const ilMediaCreationGUI::POOL_VIEW_ALL = "all"

Definition at line 18 of file class.ilMediaCreationGUI.php.

◆ POOL_VIEW_FOLDER

const ilMediaCreationGUI::POOL_VIEW_FOLDER = "fold"

Definition at line 17 of file class.ilMediaCreationGUI.php.

◆ TYPE_ALL

const ilMediaCreationGUI::TYPE_ALL = 5

Definition at line 15 of file class.ilMediaCreationGUI.php.

Referenced by ilObjMediaCastGUI\executeCommand().

◆ TYPE_AUDIO

const ilMediaCreationGUI::TYPE_AUDIO = 2

Definition at line 12 of file class.ilMediaCreationGUI.php.

◆ TYPE_IMAGE

const ilMediaCreationGUI::TYPE_IMAGE = 3

Definition at line 13 of file class.ilMediaCreationGUI.php.

◆ TYPE_OTHER

const ilMediaCreationGUI::TYPE_OTHER = 4

Definition at line 14 of file class.ilMediaCreationGUI.php.

◆ TYPE_VIDEO

const ilMediaCreationGUI::TYPE_VIDEO = 1

Definition at line 11 of file class.ilMediaCreationGUI.php.


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