ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilObjMediaCastGUI. More...
Public Member Functions | |
__construct ($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true) | |
Constructor public. More... | |
executeCommand () | |
afterSave (ilObject $newObj) | |
save object public More... | |
listItemsObject ($a_presentation_mode=false) | |
List items of media cast. More... | |
getFeedIconsHTML () | |
Get feed icons HTML. More... | |
addCastItemObject () | |
Add media cast item. More... | |
editCastItemObject () | |
Edit media cast item. More... | |
initAddCastItemForm ($a_mode="create") | |
Init add cast item form. More... | |
getCastItemValues () | |
Get cast item values into form. More... | |
saveCastItemObject () | |
Save new cast item. More... | |
updateCastItemObject () | |
Update cast item. More... | |
confirmDeletionItemsObject () | |
Confirmation Screen. More... | |
deleteItemsObject () | |
Delete news items. More... | |
downloadItemObject () | |
Download news media item. More... | |
determinePlaytimeObject () | |
Delete news items. More... | |
infoScreenObject () | |
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed More... | |
infoScreen () | |
show information screen More... | |
setTabs () | |
get tabs public More... | |
addContentSubTabs ($a_active="content") | |
Add content subtabs. More... | |
editSettingsObject () | |
Edit settings. More... | |
initSettingsForm () | |
Init Settings Form. More... | |
saveSettingsObject () | |
Save Settings. More... | |
addLocatorItems () | |
saveOrderObject () | |
showContentObject () | |
Show content. More... | |
showGallery () | |
convertFileObject () | |
Convert file object. More... | |
extractPreviewImageObject () | |
Extract preview image. More... | |
handlePlayerEventObject () | |
Handle player event. More... | |
Public Member Functions inherited from ilObjectGUI | |
executeCommand () | |
execute command More... | |
withReferences () | |
determines wether objects are referenced or not (got ref ids or not) More... | |
setCreationMode ($a_mode=true) | |
if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui More... | |
getCreationMode () | |
get creation mode More... | |
prepareOutput ($a_show_subobjects=true) | |
prepare output More... | |
getAdminTabs () | |
administration tabs show only permissions and trash folder More... | |
getHTML () | |
confirmedDeleteObject () | |
confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More... | |
cancelDeleteObject () | |
cancel deletion of object More... | |
cancelObject () | |
cancel action and go back to previous page public More... | |
createObject () | |
create new object form More... | |
cancelCreation () | |
cancel create action and go back to repository parent More... | |
saveObject () | |
save object More... | |
editObject () | |
edit object More... | |
addExternalEditFormCustom (ilPropertyFormGUI $a_form) | |
updateObject () | |
updates object entry in object_data More... | |
getFormAction ($a_cmd, $a_formaction="") | |
get form action for command (command is method name without "Object", e.g. More... | |
isVisible ($a_ref_id, $a_type) | |
viewObject () | |
list childs of current object More... | |
deleteObject ($a_error=false) | |
Display deletion confirmation screen. More... | |
cloneAllObject () | |
Clone single (not container object) Method is overwritten in ilContainerGUI. More... | |
Static Public Member Functions | |
static | _goto ($a_target) |
Static Public Member Functions inherited from ilObjectGUI | |
static | _gotoRepositoryRoot ($a_raise_error=false) |
Goto repository root. More... | |
static | _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset") |
Goto repository root. More... | |
Protected Member Functions | |
initCreationForms ($a_new_type) | |
getMediaItem ($id) | |
get MediaItem for id and updates local variable mcst_item More... | |
getMediaItems ($id) | |
get MediaItems for id and updates local variable mcst_item More... | |
editOrderObject () | |
Protected Member Functions inherited from ilObjectGUI | |
assignObject () | |
setTitleAndDescription () | |
called by prepare output More... | |
initHeaderAction ($a_sub_type=null, $a_sub_id=null) | |
Add header action menu. More... | |
insertHeaderAction ($a_list_gui) | |
Insert header action into main template. More... | |
addHeaderAction () | |
Add header action menu. More... | |
redrawHeaderActionObject () | |
Ajax call: redraw action header only. More... | |
showMountWebfolderIcon () | |
setTabs () | |
set admin tabs public More... | |
setAdminTabs () | |
set admin tabs public More... | |
setLocator () | |
set Locator More... | |
addLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) More... | |
omitLocator ($a_omit=true) | |
addAdminLocatorItems ($a_do_not_add_object=false) | |
should be overwritten to add object specific items (repository items are preloaded) More... | |
initCreationForms ($a_new_type) | |
Init creation froms. More... | |
getCreationFormsHTML (array $a_forms) | |
Get HTML for creation forms (accordion) More... | |
initCreateForm ($a_new_type) | |
Init object creation form. More... | |
initDidacticTemplate (ilPropertyFormGUI $form) | |
Show didactic template types. More... | |
addDidacticTemplateOptions (array &$a_options) | |
Add custom templates. More... | |
getDidacticTemplateVar ($a_type) | |
Get didactic template setting from creation screen. More... | |
putObjectInTree (ilObject $a_obj, $a_parent_node_id=null) | |
Add object to tree at given position. More... | |
afterSave (ilObject $a_new_object) | |
Post (successful) object creation hook. More... | |
initEditForm () | |
Init object edit form. More... | |
initEditCustomForm (ilPropertyFormGUI $a_form) | |
Add custom fields to update form. More... | |
getEditFormValues () | |
Get values for edit form. More... | |
getEditFormCustomValues (array &$a_values) | |
Add values to custom edit fields. More... | |
validateCustom (ilPropertyFormGUI $a_form) | |
Validate custom values (if not possible with checkInput()) More... | |
updateCustom (ilPropertyFormGUI $a_form) | |
Insert custom update form values into object. More... | |
afterUpdate () | |
Post (successful) object update hook. More... | |
initImportForm ($a_new_type) | |
Init object import form. More... | |
importFileObject ($parent_id=null, $a_catch_errors=true) | |
Import. More... | |
afterImport (ilObject $a_new_object) | |
Post (successful) object import hook. More... | |
setFormAction ($a_cmd, $a_formaction) | |
set specific form action for command More... | |
getReturnLocation ($a_cmd, $a_location="") | |
get return location for command (command is method name without "Object", e.g. More... | |
setReturnLocation ($a_cmd, $a_location) | |
set specific return location for command More... | |
getTargetFrame ($a_cmd, $a_target_frame="") | |
get target frame for command (command is method name without "Object", e.g. More... | |
setTargetFrame ($a_cmd, $a_target_frame) | |
set specific target frame for command More... | |
showPossibleSubObjects () | |
show possible subobjects (pulldown menu) More... | |
getTemplateFile ($a_cmd, $a_type="") | |
get a template blockfile format: tpl. More... | |
getTabs () | |
get tabs abstract method. More... | |
__showButton ($a_cmd, $a_text, $a_target='') | |
hitsperpageObject () | |
& | __initTableGUI () |
__setTableGUIBasicData (&$tbl, &$result_set, $a_from="") | |
standard implementation for tables use 'from' variable use different initial setting of table More... | |
redirectToRefId ($a_ref_id, $a_cmd="") | |
redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value More... | |
fillCloneTemplate ($a_tpl_varname, $a_type) | |
Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. More... | |
getCenterColumnHTML () | |
Get center column. More... | |
getRightColumnHTML () | |
Display right column. More... | |
setColumnSettings (ilColumnGUI $column_gui) | |
May be overwritten in subclasses. More... | |
checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null) | |
Check permission and redirect on error. More... | |
checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null) | |
Check permission. More... | |
enableDragDropFileUpload () | |
Enables the file upload into this object by dropping files. More... | |
handleAutoRating (ilObject $a_new_obj) | |
Activate rating automatically if parent container setting. More... | |
Static Protected Member Functions | |
static | isAudio ($extension) |
detect audio mimetype More... | |
Private Member Functions | |
getDuration ($file) | |
get duration from form or from file analyzer More... | |
createMediaItemForPurpose ($mob, $purpose) | |
handle media item for given purpose More... | |
updateMediaItem ($mob, & $mediaItem) | |
update media item from form More... | |
populateFormFromPost () | |
Private Attributes | |
$additionalPurposes = array ("VideoPortable", "AudioPortable") | |
$purposeSuffixes = array () | |
$mimeTypes = array() | |
Additional Inherited Members | |
Data Fields inherited from ilObjectGUI | |
const | COPY_WIZARD_NEEDS_PAGE = 1 |
$ilias | |
$objDefinition | |
$tpl | |
$tree | |
$lng | |
$data | |
$object | |
$ref_id | |
$obj_id | |
$maxcount | |
$formaction | |
$return_location | |
$target_frame | |
$tab_target_script | |
$actions | |
$sub_objects | |
$omit_locator = false | |
const | CFORM_NEW = 1 |
const | CFORM_IMPORT = 2 |
const | CFORM_CLONE = 3 |
Protected Attributes inherited from ilObjectGUI | |
$tmp_import_dir | |
$tabs_gui = null | |
$ctrl | |
Class ilObjMediaCastGUI.
ilObjMediaCastGUI: ilPermissionGUI, ilInfoScreenGUI, ilExportGUI ilObjMediaCastGUI: ilCommonActionDispatcherGUI ilObjMediaCastGUI: ilLearningProgressGUI, ilObjectCopyGUI ilObjMediaCastGUI: ilRepositoryGUI, ilAdministrationGUI
Definition at line 18 of file class.ilObjMediaCastGUI.php.
ilObjMediaCastGUI::__construct | ( | $a_data, | |
$a_id, | |||
$a_call_by_reference, | |||
$a_prepare_output = true |
|||
) |
Constructor public.
Definition at line 29 of file class.ilObjMediaCastGUI.php.
References $ilCtrl, ilObjectGUI\$lng, ilMediaCastSettings\_getInstance(), array, and ilMimeTypeUtil\getExt2MimeMap().
|
static |
Definition at line 1364 of file class.ilObjMediaCastGUI.php.
References $_GET, $ilErr, ilObjectGUI\$lng, ilObjectGUI\_gotoRepositoryNode(), ilObjectGUI\_gotoRepositoryRoot(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), exit, and ilUtil\sendFailure().
ilObjMediaCastGUI::addCastItemObject | ( | ) |
Add media cast item.
Definition at line 300 of file class.ilObjMediaCastGUI.php.
References ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), and initAddCastItemForm().
ilObjMediaCastGUI::addContentSubTabs | ( | $a_active = "content" | ) |
Add content subtabs.
Definition at line 1132 of file class.ilObjMediaCastGUI.php.
References $_GET, ilObjectGUI\$lng, object, and ilObjMediaCast\ORDER_MANUAL.
Referenced by editOrderObject(), listItemsObject(), and showGallery().
ilObjMediaCastGUI::addLocatorItems | ( | ) |
Definition at line 1354 of file class.ilObjMediaCastGUI.php.
ilObjMediaCastGUI::afterSave | ( | ilObject | $newObj | ) |
save object public
Definition at line 153 of file class.ilObjMediaCastGUI.php.
References ilObject\getRefId(), ilUtil\redirect(), and ilUtil\sendSuccess().
ilObjMediaCastGUI::confirmDeletionItemsObject | ( | ) |
Confirmation Screen.
Definition at line 898 of file class.ilObjMediaCastGUI.php.
References $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), ilUtil\getImagePath(), and listItemsObject().
ilObjMediaCastGUI::convertFileObject | ( | ) |
Convert file object.
Definition at line 1632 of file class.ilObjMediaCastGUI.php.
References $_GET, $_POST, $ilCtrl, $ret, ilObjMediaObject\_getDirectory(), ilObjectGUI\checkPermission(), ilFFmpeg\convert(), ilFFmpeg\getLastReturnValues(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\stripSlashes().
|
private |
handle media item for given purpose
ilMediaObject | $mob | |
string | file |
Definition at line 706 of file class.ilObjMediaCastGUI.php.
References updateMediaItem().
Referenced by saveCastItemObject(), and updateCastItemObject().
ilObjMediaCastGUI::deleteItemsObject | ( | ) |
Delete news items.
Definition at line 935 of file class.ilObjMediaCastGUI.php.
References $_POST, $ilCtrl, and ilObjectGUI\checkPermission().
ilObjMediaCastGUI::determinePlaytimeObject | ( | ) |
Delete news items.
Definition at line 975 of file class.ilObjMediaCastGUI.php.
References $_GET, $duration, $file, $ilCtrl, ilObjectGUI\$lng, ilObjMediaObject\_getDirectory(), getDuration(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilObjMediaCastGUI::downloadItemObject | ( | ) |
Download news media item.
Definition at line 954 of file class.ilObjMediaCastGUI.php.
References $_GET, $ilCtrl, $ilUser, ilObjectGUI\checkPermission(), and exit.
ilObjMediaCastGUI::editCastItemObject | ( | ) |
Edit media cast item.
Definition at line 313 of file class.ilObjMediaCastGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$tpl, array, ilObjectGUI\checkPermission(), ilFFmpeg\enabled(), getCastItemValues(), ilObjMediaObject\getMediaItem(), initAddCastItemForm(), ilTextInputGUI\setMaxLength(), and ilFFmpeg\supportsImageExtraction().
|
protected |
Definition at line 1451 of file class.ilObjMediaCastGUI.php.
References ilObjectGUI\$lng, ilObjectGUI\$tpl, addContentSubTabs(), ilObjectGUI\checkPermission(), listItemsObject(), object, ilObjMediaCast\ORDER_CREATION_DATE_ASC, ilObjMediaCast\ORDER_CREATION_DATE_DESC, ilObjMediaCast\ORDER_MANUAL, and ilObjMediaCast\ORDER_TITLE.
ilObjMediaCastGUI::editSettingsObject | ( | ) |
Edit settings.
Definition at line 1162 of file class.ilObjMediaCastGUI.php.
References ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), and initSettingsForm().
ilObjMediaCastGUI::executeCommand | ( | ) |
Definition at line 59 of file class.ilObjMediaCastGUI.php.
References $_GET, $cmd, $ilUser, $ret, ilObjectGUI\addHeaderAction(), ilObjectGUI\checkPermission(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), infoScreen(), ilLearningProgressBaseGUI\LP_CONTEXT_REPOSITORY, object, and ilObjectGUI\prepareOutput().
ilObjMediaCastGUI::extractPreviewImageObject | ( | ) |
Extract preview image.
Definition at line 1692 of file class.ilObjMediaCastGUI.php.
References $_GET, $_POST, $ilCtrl, $ret, ilObjMediaObject\_getDirectory(), ilObjectGUI\checkPermission(), ilFFmpeg\extractImage(), ilFFmpeg\getLastReturnValues(), ilUtil\sendFailure(), and ilUtil\sendInfo().
ilObjMediaCastGUI::getCastItemValues | ( | ) |
Get cast item values into form.
Definition at line 521 of file class.ilObjMediaCastGUI.php.
References $_GET, ilObjectGUI\$lng, ilObjMediaCast\$purposes, array, getMediaItems(), and ilObjMediaObject\getVideoPreviewPic().
Referenced by editCastItemObject().
|
private |
get duration from form or from file analyzer
unknown_type | $file |
Definition at line 678 of file class.ilObjMediaCastGUI.php.
References $duration, $file, and array.
Referenced by determinePlaytimeObject(), saveCastItemObject(), and updateCastItemObject().
ilObjMediaCastGUI::getFeedIconsHTML | ( | ) |
Get feed icons HTML.
Definition at line 215 of file class.ilObjMediaCastGUI.php.
References $html, ilObjectGUI\$lng, ilObjMediaCast\$purposes, $title, $url, ilBlockSetting\_lookup(), ilRSSButtonGUI\ICON_ITUNES, ilRSSButtonGUI\ICON_ITUNES_AUDIO, ilRSSButtonGUI\ICON_ITUNES_VIDEO, ilRSSButtonGUI\ICON_RSS, ilRSSButtonGUI\ICON_RSS_AUDIO, ilRSSButtonGUI\ICON_RSS_VIDEO, and object.
Referenced by listItemsObject(), and showGallery().
|
protected |
get MediaItem for id and updates local variable mcst_item
Definition at line 1408 of file class.ilObjMediaCastGUI.php.
References ilObjMediaObject\getMediaItem().
|
protected |
get MediaItems for id and updates local variable mcst_item
Definition at line 1423 of file class.ilObjMediaCastGUI.php.
References ilObjMediaObject\getMediaItems().
Referenced by getCastItemValues().
ilObjMediaCastGUI::handlePlayerEventObject | ( | ) |
Handle player event.
Definition at line 1750 of file class.ilObjMediaCastGUI.php.
References $_GET, $ilUser, and exit.
ilObjMediaCastGUI::infoScreen | ( | ) |
show information screen
Definition at line 1017 of file class.ilObjMediaCastGUI.php.
References $ilUser, $info, ilDatePresentation\formatDate(), and IL_CAL_DATETIME.
Referenced by executeCommand(), and infoScreenObject().
ilObjMediaCastGUI::infoScreenObject | ( | ) |
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed
Definition at line 1006 of file class.ilObjMediaCastGUI.php.
References ilObjectGUI\checkPermission(), and infoScreen().
ilObjMediaCastGUI::initAddCastItemForm | ( | $a_mode = "create" | ) |
Init add cast item form.
Definition at line 398 of file class.ilObjMediaCastGUI.php.
References $file, $ilCtrl, ilObjectGUI\$lng, $options, ilObjMediaCast\$purposes, $section, array, ilObjectGUI\checkPermission(), object, ilRadioOption\setInfo(), ilFormPropertyGUI\setInfo(), ilTextInputGUI\setMaxLength(), ilRegExpInputGUI\setPattern(), ilFormPropertyGUI\setPostVar(), ilFormPropertyGUI\setRequired(), and ilFileInputGUI\setSuffixes().
Referenced by addCastItemObject(), editCastItemObject(), saveCastItemObject(), and updateCastItemObject().
|
protected |
Definition at line 140 of file class.ilObjMediaCastGUI.php.
References array, ilObjectGUI\fillCloneTemplate(), ilObjectGUI\initCreateForm(), and ilObjectGUI\initImportForm().
ilObjMediaCastGUI::initSettingsForm | ( | ) |
Init Settings Form.
Definition at line 1176 of file class.ilObjMediaCastGUI.php.
References $ilCtrl, ilObjectGUI\$lng, $options, $si, ilObjectGUI\$tpl, ilBlockSetting\_lookup(), ilNewsItem\_lookupRSSPeriod(), ilRadioGroupInputGUI\addOption(), array, object, ilObjMediaCast\ORDER_CREATION_DATE_ASC, ilObjMediaCast\ORDER_CREATION_DATE_DESC, ilObjMediaCast\ORDER_MANUAL, ilObjMediaCast\ORDER_TITLE, ilCheckboxInputGUI\setChecked(), ilFormPropertyGUI\setInfo(), ilNumberInputGUI\setMaxValue(), ilTextInputGUI\setValue(), ilTextAreaInputGUI\setValue(), ilObjMediaCast\VIEW_GALLERY, and ilObjMediaCast\VIEW_LIST.
Referenced by editSettingsObject(), and saveSettingsObject().
|
staticprotected |
detect audio mimetype
string | $extension |
Definition at line 1398 of file class.ilObjMediaCastGUI.php.
ilObjMediaCastGUI::listItemsObject | ( | $a_presentation_mode = false | ) |
List items of media cast.
Definition at line 163 of file class.ilObjMediaCastGUI.php.
References $_GET, ilObjectGUI\$lng, ilObjectGUI\$tpl, addContentSubTabs(), ilObjectGUI\checkPermission(), and getFeedIconsHTML().
Referenced by confirmDeletionItemsObject(), editOrderObject(), and showContentObject().
|
private |
Definition at line 1432 of file class.ilObjMediaCastGUI.php.
References $_POST, ilObjMediaCast\$purposes, and ilObjectGUI\$tpl.
Referenced by saveCastItemObject(), and updateCastItemObject().
ilObjMediaCastGUI::saveCastItemObject | ( | ) |
Save new cast item.
Definition at line 573 of file class.ilObjMediaCastGUI.php.
References $_POST, $duration, $file, $ilCtrl, $ilUser, ilObjectGUI\$lng, $title, ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), createMediaItemForPurpose(), ilObjMediaObject\generatePreviewPic(), getDuration(), initAddCastItemForm(), NEWS_AUDIO, object, populateFormFromPost(), and ilUtil\sendFailure().
ilObjMediaCastGUI::saveOrderObject | ( | ) |
Definition at line 1484 of file class.ilObjMediaCastGUI.php.
References $_POST, ilObjectGUI\$lng, array, and ilUtil\sendSuccess().
ilObjMediaCastGUI::saveSettingsObject | ( | ) |
Save Settings.
Definition at line 1304 of file class.ilObjMediaCastGUI.php.
References $ilCtrl, ilBlockSetting\_write(), ilObjectGUI\checkPermission(), initSettingsForm(), and ilUtil\sendSuccess().
ilObjMediaCastGUI::setTabs | ( | ) |
get tabs public
Definition at line 1069 of file class.ilObjMediaCastGUI.php.
References ilObjectGUI\$lng, array, ilLearningProgressAccess\checkAccess(), and object.
ilObjMediaCastGUI::showContentObject | ( | ) |
Show content.
Definition at line 1511 of file class.ilObjMediaCastGUI.php.
References $ilUser, ilObjectGUI\$tpl, ilChangeEvent\_recordReadEvent(), listItemsObject(), object, showGallery(), and ilObjMediaCast\VIEW_GALLERY.
ilObjMediaCastGUI::showGallery | ( | ) |
Definition at line 1532 of file class.ilObjMediaCastGUI.php.
References $ilCtrl, ilObjectGUI\$tpl, ilObjMediaObject\_getURL(), addContentSubTabs(), getFeedIconsHTML(), ilUtil\getImagePath(), ilUtil\img(), object, ilWACSignedPath\signFile(), and ilWACSignedPath\signFolderOfStartFile().
Referenced by showContentObject().
ilObjMediaCastGUI::updateCastItemObject | ( | ) |
Update cast item.
Definition at line 793 of file class.ilObjMediaCastGUI.php.
References $_GET, $duration, $file, $ilCtrl, $ilUser, ilObjectGUI\$lng, $log, ilObjMediaCast\$purposes, $title, ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), createMediaItemForPurpose(), getDuration(), initAddCastItemForm(), populateFormFromPost(), and updateMediaItem().
|
private |
update media item from form
IlObjectMediaObject | $mob | |
IlMediaItem | $mediaItem |
Definition at line 721 of file class.ilObjMediaCastGUI.php.
References $_POST, $file, $location, $title, ilObjMediaObject\_getDirectory(), ilUtil\getASCIIFilename(), ilObjMediaObject\getMimeType(), ilUtil\moveUploadedFile(), and ilUtil\renameExecutables().
Referenced by createMediaItemForPurpose(), and updateCastItemObject().
|
private |
Definition at line 21 of file class.ilObjMediaCastGUI.php.
|
private |
Definition at line 23 of file class.ilObjMediaCastGUI.php.
|
private |
Definition at line 22 of file class.ilObjMediaCastGUI.php.