ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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 | |
Definition at line 9 of file class.ilMediaCreationGUI.php.
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().
|
protected |
Apply filter.
Definition at line 501 of file class.ilMediaCreationGUI.php.
References getPoolTable().
|
protected |
|
protected |
Creation selection.
Definition at line 209 of file class.ilMediaCreationGUI.php.
References $main_tpl, ilAccordionGUI\FIRST_OPEN, initPoolSelection(), initUploadForm(), and initUrlForm().
ilMediaCreationGUI::executeCommand | ( | ) |
Execute command.
Definition at line 184 of file class.ilMediaCreationGUI.php.
References $ctrl, and initPoolSelection().
ilMediaCreationGUI::getAllMimeTypes | ( | ) |
Get All mime types.
Definition at line 142 of file class.ilMediaCreationGUI.php.
References $all_mime_types.
Referenced by getMimeTypes().
ilMediaCreationGUI::getAllSuffixes | ( | ) |
Get All suffixes.
Definition at line 124 of file class.ilMediaCreationGUI.php.
References $all_suffixes.
Referenced by getSuffixes().
|
protected |
Get mimes.
Definition at line 168 of file class.ilMediaCreationGUI.php.
References getAllMimeTypes().
Referenced by insertFromPool().
|
protected |
Get pool table.
Definition at line 525 of file class.ilMediaCreationGUI.php.
References ilMediaPoolTableGUI\IL_MEP_SELECT.
Referenced by applyFilter(), listPoolItems(), and resetFilter().
|
protected |
Get suffixes.
Definition at line 152 of file class.ilMediaCreationGUI.php.
References getAllSuffixes().
Referenced by initUploadForm().
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().
ilMediaCreationGUI::initUploadForm | ( | ) |
Init upload form.
Definition at line 250 of file class.ilMediaCreationGUI.php.
References $ctrl, $lng, and getSuffixes().
Referenced by creationSelection(), and uploadFile().
ilMediaCreationGUI::initUrlForm | ( | ) |
Init url form.
Definition at line 275 of file class.ilMediaCreationGUI.php.
Referenced by creationSelection(), and saveUrl().
|
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().
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().
ilMediaCreationGUI::poolSelection | ( | ) |
Pool Selection.
Definition at line 556 of file class.ilMediaCreationGUI.php.
References $main_tpl.
|
protected |
Reset filter.
Definition at line 512 of file class.ilMediaCreationGUI.php.
References getPoolTable().
|
protected |
Save url.
Definition at line 397 of file class.ilMediaCreationGUI.php.
References $after_url_saving, $format, $url, ilObjMediaObject\_getDirectory(), ilObjMediaObject\getMimeType(), and initUrlForm().
ilMediaCreationGUI::selectPool | ( | ) |
ilMediaCreationGUI::setAllMimeTypes | ( | $a_val | ) |
Set All mime types.
array | $a_val |
Definition at line 133 of file class.ilMediaCreationGUI.php.
ilMediaCreationGUI::setAllSuffixes | ( | $a_val | ) |
Set All suffixes.
array | $a_val |
Definition at line 115 of file class.ilMediaCreationGUI.php.
Referenced by ilObjMediaCastGUI\executeCommand().
|
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().
|
protected |
Definition at line 20 of file class.ilMediaCreationGUI.php.
Referenced by __construct().
|
protected |
Definition at line 55 of file class.ilMediaCreationGUI.php.
Referenced by listPoolItems().
|
protected |
Definition at line 50 of file class.ilMediaCreationGUI.php.
Referenced by __construct(), and insertFromPool().
|
protected |
Definition at line 40 of file class.ilMediaCreationGUI.php.
Referenced by __construct(), and uploadFile().
|
protected |
Definition at line 45 of file class.ilMediaCreationGUI.php.
Referenced by __construct(), and saveUrl().
|
protected |
Definition at line 58 of file class.ilMediaCreationGUI.php.
Referenced by getAllMimeTypes().
|
protected |
Definition at line 57 of file class.ilMediaCreationGUI.php.
Referenced by getAllSuffixes().
|
protected |
Definition at line 30 of file class.ilMediaCreationGUI.php.
Referenced by cancel(), executeCommand(), initPoolSelection(), initUploadForm(), initUrlForm(), listPoolItems(), and selectPool().
|
protected |
Definition at line 25 of file class.ilMediaCreationGUI.php.
Referenced by initPoolSelection(), initUploadForm(), initUrlForm(), and listPoolItems().
|
protected |
Definition at line 35 of file class.ilMediaCreationGUI.php.
Referenced by creationSelection(), listPoolItems(), and poolSelection().
|
protected |
Definition at line 73 of file class.ilMediaCreationGUI.php.
|
protected |
Definition at line 68 of file class.ilMediaCreationGUI.php.
|
protected |
Definition at line 63 of file class.ilMediaCreationGUI.php.
Referenced by listPoolItems().
const ilMediaCreationGUI::POOL_VIEW_ALL = "all" |
Definition at line 18 of file class.ilMediaCreationGUI.php.
const ilMediaCreationGUI::POOL_VIEW_FOLDER = "fold" |
Definition at line 17 of file class.ilMediaCreationGUI.php.
const ilMediaCreationGUI::TYPE_ALL = 5 |
Definition at line 15 of file class.ilMediaCreationGUI.php.
Referenced by ilObjMediaCastGUI\executeCommand().
const ilMediaCreationGUI::TYPE_AUDIO = 2 |
Definition at line 12 of file class.ilMediaCreationGUI.php.
const ilMediaCreationGUI::TYPE_IMAGE = 3 |
Definition at line 13 of file class.ilMediaCreationGUI.php.
const ilMediaCreationGUI::TYPE_OTHER = 4 |
Definition at line 14 of file class.ilMediaCreationGUI.php.
const ilMediaCreationGUI::TYPE_VIDEO = 1 |
Definition at line 11 of file class.ilMediaCreationGUI.php.