ILIAS
Release_4_0_x_branch Revision 61816
|
User Interface class for media pool objects. More...
Public Member Functions | |
__construct ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=false) | |
Constructor. | |
getType () | |
Get type. | |
& | executeCommand () |
execute command | |
createMediaObject () | |
view () | |
initEditForm ($a_mode="edit", $a_new_type="") | |
Init object creation form. | |
getEditFormValues () | |
Get values for edit form. | |
afterSave ($newObj) | |
save object public | |
editObject () | |
edit properties of object (admin form) | |
edit () | |
edit properties of object (module form) | |
update () | |
update properties | |
updateObject () | |
updates object entry in object_data | |
afterUpdate () | |
listMedia () | |
list media objects | |
allMedia () | |
list all objects | |
applyFilter () | |
Apply filter. | |
resetFilter () | |
Reset filter. | |
getTemplate () | |
Get standard template. | |
getParentFolderId () | |
Get folder parent ID. | |
frameset () | |
show upper icon (standard procedure will work, if no obj_id is given) | |
infoScreenFrameset () | |
output main frameset of media pool left frame: explorer tree of folders right frame: media pool content | |
explorer () | |
output explorer tree | |
showMedia () | |
show media object | |
showFullscreen () | |
show fullscreen | |
confirmRemove () | |
confirm remove of mobs | |
openClipboard () | |
paste from clipboard | |
insertFromClipboard () | |
insert media object from clipboard | |
cancelRemove () | |
cancel deletion of media objects/folders | |
remove () | |
confirm deletion of | |
copyToClipboard () | |
copy media objects to clipboard | |
addLocatorItems () | |
add locator items for media pool | |
createFolderForm () | |
create folder form | |
editFolder () | |
Edit folder. | |
getFolderValues () | |
Get current values for folder from. | |
saveFolder () | |
Save folder form. | |
updateFolder () | |
Update folder. | |
initFolderForm ($a_mode="edit") | |
Init folder form. | |
cancelFolderUpdate () | |
Cancel save. | |
cancelSave () | |
Cancel save. | |
createMediaPoolPage () | |
Create new content snippet. | |
editMediaPoolPage () | |
Edit media pool page. | |
saveMediaPoolPage () | |
Save media pool page. | |
updateMediaPoolPage () | |
Update media pool page. | |
initMediaPoolPageForm ($a_mode="edit") | |
Init page form. | |
getMediaPoolPageValues () | |
Get current values for media pool page from. | |
setMediaPoolPageTabs () | |
Set media pool page tabs. | |
showMediaPoolPageUsages () | |
List all usages of the contnet snippet. | |
setTabs () | |
Set tabs. | |
_goto ($a_target) | |
goto target media pool | |
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 | |
infoScreen () | |
show information screen | |
Public Member Functions inherited from ilObject2GUI | |
__construct ($a_id=0, $a_call_by_reference=true) | |
Constructor. | |
performCommand ($cmd) | |
Handles all commmands of this class, centralizes permission checks. | |
withReferences () | |
Final/Private declaration of unchanged parent methods. | |
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 | |
getCreationMode () | |
get creation mode | |
getHTML () | |
isVisible () | |
deleteObject () | |
trashObject () | |
Show trash content of object. | |
undeleteObject () | |
Get objects back from trash. | |
confirmedDeleteObject () | |
confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled | |
cancelDeleteObject () | |
cancel deletion of object | |
removeFromSystemObject () | |
remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method | |
cloneAllObject () | |
Clone single (not container object) Method is overwritten in ilContainerGUI. | |
viewObject () | |
list childs of current object | |
getAdminTabs ($a) | |
getTemplateFile () | |
copyWizardHasOptions ($a_mode) | |
Check if there is any modules specific option. | |
create () | |
Deleted in ilObject. | |
save () | |
save object | |
cancelCreation ($in_rep=false) | |
cancel action and go back to previous page public | |
cancelUpdate () | |
cancel action and go back to previous page public | |
Public Member Functions inherited from ilObjectGUI | |
ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true) | |
Constructor public. | |
getAdminTabs (&$tabs_gui) | |
administration tabs show only permissions and trash folder | |
createObject () | |
create new object form | |
cancelObject ($in_rep=false) | |
cancel action and go back to previous page public | |
saveObject () | |
save object | |
getFormAction ($a_cmd, $a_formaction="") | |
get form action for command (command is method name without "Object", e.g. | |
isVisible ($a_ref_id, $a_type) | |
deleteObject ($a_error=false) | |
Display deletion confirmation screen. | |
getTemplateFile ($a_cmd, $a_type="") | |
get a template blockfile format: tpl. |
Data Fields | |
$output_prepared |
Protected Member Functions | |
afterConstructor () | |
Initialisation. | |
cancel () | |
cancel editing | |
Protected Member Functions inherited from ilObject2GUI | |
assignObject () | |
prepareOutput () | |
prepare output | |
setTitleAndDescription () | |
called by prepare output | |
showUpperIcon () | |
setLocator () | |
set Locator | |
omitLocator ($a_omit=true) | |
getTargetFrame () | |
setTargetFrame ($a_cmd, $a_target_frame) | |
set specific target frame for command | |
getCenterColumnHTML () | |
Get center column. | |
getRightColumnHTML () | |
Display right column. | |
setColumnSettings ($column_gui) | |
May be overwritten in subclasses. | |
checkPermission ($a_perm, $a_cmd="") | |
showPossibleSubObjects () | |
show possible subobjects (pulldown menu) | |
redirectToRefId () | |
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. | |
fillCloneSearchTemplate ($a_tpl_varname, $a_type) | |
Add an object search in case the number of existing objects is too big to offer a selection list. | |
searchCloneSourceObject () | |
Search clone source by title. | |
buildCloneSelect ($existing_objs) | |
Build a select box for clonable objects (permission write) | |
addAdminLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) | |
getReturnLocation () | |
Deprecated functions. | |
setReturnLocation () | |
showActions () | |
getTitlesByRefId () | |
getTabs () | |
__showButton () | |
hitsperpageObject () | |
__initTableGUI () | |
__setTableGUIBasicData () | |
__showClipboardTable () | |
Protected Member Functions inherited from ilObjectGUI | |
setAdminTabs () | |
set admin tabs public | |
displayEditForm ($fields) | |
display edit form (usually called by editObject) | |
setFormAction ($a_cmd, $a_formaction) | |
set specific form action for command | |
getReturnLocation ($a_cmd, $a_location="") | |
get return location for command (command is method name without "Object", e.g. | |
setReturnLocation ($a_cmd, $a_location) | |
set specific return location for command | |
getTargetFrame ($a_cmd, $a_target_frame="") | |
get target frame for command (command is method name without "Object", e.g. | |
getTitlesByRefId ($a_ref_ids) | |
get Titles of objects this method is used for error messages in methods cut/copy/paste | |
getTabs (&$tabs_gui) | |
get tabs abstract method. | |
__showButton ($a_cmd, $a_text, $a_target= '') | |
__setTableGUIBasicData (&$tbl, &$result_set, $a_from="") | |
standard implementation for tables use 'from' variable use different initial setting of table | |
__showClipboardTable ($a_result_set, $a_from="") | |
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 |
User Interface class for media pool objects.
ilObjMediaPoolGUI: ilObjMediaObjectGUI, ilObjFolderGUI, ilEditClipboardGUI, ilPermissionGUI ilObjMediaPoolGUI: ilInfoScreenGUI, ilMediaPoolPageGUI
Definition at line 24 of file class.ilObjMediaPoolGUI.php.
ilObjMediaPoolGUI::__construct | ( | $a_data, | |
$a_id = 0 , |
|||
$a_call_by_reference = true , |
|||
$a_prepare_output = false |
|||
) |
ilObjMediaPoolGUI::_goto | ( | $a_target | ) |
goto target media pool
Definition at line 1476 of file class.ilObjMediaPoolGUI.php.
References $_GET, $ilErr, ilObjectGUI\$lng, ilObject\_lookupObjId(), ilObject\_lookupTitle(), exit, and ilUtil\sendFailure().
ilObjMediaPoolGUI::addLocatorItems | ( | ) |
add locator items for media pool
Reimplemented from ilObject2GUI.
Definition at line 1029 of file class.ilObjMediaPoolGUI.php.
References $_GET, ilObjectGUI\$obj_id, $title, ilObjectGUI\$tree, and ilObject2GUI\getCreationMode().
|
protected |
Initialisation.
Reimplemented from ilObject2GUI.
Definition at line 41 of file class.ilObjMediaPoolGUI.php.
References ilObjectGUI\$lng.
ilObjMediaPoolGUI::afterSave | ( | $newObj | ) |
save object public
Definition at line 387 of file class.ilObjMediaPoolGUI.php.
References ilUtil\redirect(), and ilUtil\sendSuccess().
ilObjMediaPoolGUI::afterUpdate | ( | ) |
Reimplemented from ilObject2GUI.
Definition at line 473 of file class.ilObjMediaPoolGUI.php.
Referenced by updateObject().
ilObjMediaPoolGUI::allMedia | ( | ) |
list all objects
Definition at line 501 of file class.ilObjMediaPoolGUI.php.
References $ilCtrl, ilObjectGUI\$tpl, ilObjectGUI\$tree, and ilMediaPoolTableGUI\IL_MEP_EDIT.
Referenced by applyFilter(), and resetFilter().
ilObjMediaPoolGUI::applyFilter | ( | ) |
Apply filter.
Definition at line 522 of file class.ilObjMediaPoolGUI.php.
References allMedia(), and ilMediaPoolTableGUI\IL_MEP_EDIT.
|
protected |
cancel editing
Reimplemented from ilObject2GUI.
Definition at line 428 of file class.ilObjMediaPoolGUI.php.
References $_GET.
ilObjMediaPoolGUI::cancelFolderUpdate | ( | ) |
ilObjMediaPoolGUI::cancelRemove | ( | ) |
cancel deletion of media objects/folders
Definition at line 956 of file class.ilObjMediaPoolGUI.php.
References $_GET.
ilObjMediaPoolGUI::cancelSave | ( | ) |
ilObjMediaPoolGUI::confirmRemove | ( | ) |
confirm remove of mobs
Definition at line 775 of file class.ilObjMediaPoolGUI.php.
References $_POST, $_SESSION, $ilCtrl, ilObjectGUI\$lng, $name, ilObjectGUI\$obj_id, $title, $type, ilUtil\getImagePath(), ilPageContentUsage\getUsages(), ilMediaPoolItem\lookupTitle(), ilMediaPoolItem\lookupType(), ilUtil\sendFailure(), ilUtil\sendQuestion(), and ilUtil\switchColor().
ilObjMediaPoolGUI::copyToClipboard | ( | ) |
copy media objects to clipboard
Definition at line 988 of file class.ilObjMediaPoolGUI.php.
References $_GET, $_POST, ilObjectGUI\$obj_id, $type, ilObject2GUI\checkPermission(), ilMediaPoolItem\lookupForeignId(), ilMediaPoolItem\lookupType(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilObjMediaPoolGUI::createFolderForm | ( | ) |
create folder form
Definition at line 1069 of file class.ilObjMediaPoolGUI.php.
References ilObjectGUI\$tpl, and initFolderForm().
ilObjMediaPoolGUI::createMediaObject | ( | ) |
Definition at line 289 of file class.ilObjMediaPoolGUI.php.
ilObjMediaPoolGUI::createMediaPoolPage | ( | ) |
Create new content snippet.
Definition at line 1233 of file class.ilObjMediaPoolGUI.php.
References ilObjectGUI\$tpl, and initMediaPoolPageForm().
ilObjMediaPoolGUI::edit | ( | ) |
edit properties of object (module form)
Definition at line 419 of file class.ilObjMediaPoolGUI.php.
References editObject().
ilObjMediaPoolGUI::editFolder | ( | ) |
Edit folder.
@return |
Definition at line 1095 of file class.ilObjMediaPoolGUI.php.
References ilObjectGUI\$tpl, getFolderValues(), and initFolderForm().
ilObjMediaPoolGUI::editMediaPoolPage | ( | ) |
Edit media pool page.
@return |
Definition at line 1246 of file class.ilObjMediaPoolGUI.php.
References $_GET, ilObjectGUI\$tpl, getMediaPoolPageValues(), initMediaPoolPageForm(), and setMediaPoolPageTabs().
ilObjMediaPoolGUI::editObject | ( | ) |
edit properties of object (admin form)
public
Reimplemented from ilObject2GUI.
Definition at line 401 of file class.ilObjMediaPoolGUI.php.
References ilObjectGUI\$tpl, and ilObjectGUI\$tree.
Referenced by edit().
& ilObjMediaPoolGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilObject2GUI.
Definition at line 71 of file class.ilObjMediaPoolGUI.php.
References $_GET, $_POST, $cmd, $ilCtrl, ilObjectGUI\$lng, $ret, ilObjectGUI\$tpl, ilObjectGUI\$tree, explorer(), ilObject2GUI\getCreationMode(), getParentFolderId(), getTemplate(), infoScreen(), ilMediaPoolItem\lookupForeignId(), ilObject2GUI\prepareOutput(), ilUtil\redirect(), ilObject2GUI\setCreationMode(), ilObject2GUI\setLocator(), and setMediaPoolPageTabs().
ilObjMediaPoolGUI::explorer | ( | ) |
output explorer tree
Definition at line 646 of file class.ilObjMediaPoolGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$object, exit, IL_FM_POSITIVE, and ilExplorer\setUseStandardFrame().
Referenced by executeCommand().
ilObjMediaPoolGUI::frameset | ( | ) |
show upper icon (standard procedure will work, if no obj_id is given)
output main frameset of media pool left frame: explorer tree of folders right frame: media pool content
Definition at line 606 of file class.ilObjMediaPoolGUI.php.
References exit.
ilObjMediaPoolGUI::getEditFormValues | ( | ) |
Get values for edit form.
Reimplemented from ilObject2GUI.
Definition at line 368 of file class.ilObjMediaPoolGUI.php.
ilObjMediaPoolGUI::getFolderValues | ( | ) |
Get current values for folder from.
Definition at line 1107 of file class.ilObjMediaPoolGUI.php.
References $_GET, and ilMediaPoolItem\lookupTitle().
Referenced by editFolder().
ilObjMediaPoolGUI::getMediaPoolPageValues | ( | ) |
Get current values for media pool page from.
Definition at line 1359 of file class.ilObjMediaPoolGUI.php.
References $_GET, and ilMediaPoolItem\lookupTitle().
Referenced by editMediaPoolPage().
ilObjMediaPoolGUI::getParentFolderId | ( | ) |
Get folder parent ID.
Definition at line 557 of file class.ilObjMediaPoolGUI.php.
References $_GET.
Referenced by executeCommand().
ilObjMediaPoolGUI::getTemplate | ( | ) |
Get standard template.
Definition at line 548 of file class.ilObjMediaPoolGUI.php.
Referenced by executeCommand().
|
final |
Get type.
Reimplemented from ilObject2GUI.
Definition at line 63 of file class.ilObjMediaPoolGUI.php.
ilObjMediaPoolGUI::infoScreen | ( | ) |
show information screen
Definition at line 1516 of file class.ilObjMediaPoolGUI.php.
References $_GET.
Referenced by executeCommand(), and infoScreenObject().
ilObjMediaPoolGUI::infoScreenFrameset | ( | ) |
output main frameset of media pool left frame: explorer tree of folders right frame: media pool content
Definition at line 627 of file class.ilObjMediaPoolGUI.php.
References exit.
ilObjMediaPoolGUI::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 1506 of file class.ilObjMediaPoolGUI.php.
References infoScreen().
ilObjMediaPoolGUI::initEditForm | ( | $a_mode = "edit" , |
|
$a_new_type = "" |
|||
) |
Init object creation form.
int | $a_mode | Edit Mode |
Reimplemented from ilObject2GUI.
Definition at line 305 of file class.ilObjMediaPoolGUI.php.
References $ilCtrl, ilObjectGUI\$lng, ilTextAreaInputGUI\setCols(), ilTextInputGUI\setMaxLength(), and ilNumberInputGUI\setMinValue().
Referenced by updateObject().
ilObjMediaPoolGUI::initFolderForm | ( | $a_mode = "edit" | ) |
Init folder form.
int | $a_mode | Edit Mode |
Definition at line 1176 of file class.ilObjMediaPoolGUI.php.
References $ilCtrl, ilObjectGUI\$lng, and ilTextInputGUI\setMaxLength().
Referenced by createFolderForm(), editFolder(), saveFolder(), and updateFolder().
ilObjMediaPoolGUI::initMediaPoolPageForm | ( | $a_mode = "edit" | ) |
Init page form.
int | $a_mode | Edit Mode |
Definition at line 1327 of file class.ilObjMediaPoolGUI.php.
References $ilCtrl, ilObjectGUI\$lng, and ilTextInputGUI\setMaxLength().
Referenced by createMediaPoolPage(), editMediaPoolPage(), saveMediaPoolPage(), and updateMediaPoolPage().
ilObjMediaPoolGUI::insertFromClipboard | ( | ) |
insert media object from clipboard
Definition at line 867 of file class.ilObjMediaPoolGUI.php.
References $_GET, $type, ilEditClipboardGUI\_getSelectedIDs(), ilObject\_lookupTitle(), ilMediaPoolPage\lookupTitle(), ilMediaPoolItem\lookupTitle(), and ilUtil\sendInfo().
ilObjMediaPoolGUI::listMedia | ( | ) |
list media objects
Definition at line 481 of file class.ilObjMediaPoolGUI.php.
References $ilCtrl, ilObjectGUI\$tpl, and ilObjectGUI\$tree.
ilObjMediaPoolGUI::openClipboard | ( | ) |
paste from clipboard
Definition at line 848 of file class.ilObjMediaPoolGUI.php.
References $ilCtrl.
ilObjMediaPoolGUI::remove | ( | ) |
confirm deletion of
Definition at line 965 of file class.ilObjMediaPoolGUI.php.
References $_GET, $_SESSION, ilObjectGUI\$obj_id, and ilUtil\sendSuccess().
ilObjMediaPoolGUI::resetFilter | ( | ) |
Reset filter.
Definition at line 535 of file class.ilObjMediaPoolGUI.php.
References allMedia(), and ilMediaPoolTableGUI\IL_MEP_EDIT.
ilObjMediaPoolGUI::saveFolder | ( | ) |
Save folder form.
Definition at line 1119 of file class.ilObjMediaPoolGUI.php.
References $_GET, $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilObjectGUI\$tree, initFolderForm(), and ilUtil\sendSuccess().
ilObjMediaPoolGUI::saveMediaPoolPage | ( | ) |
Save media pool page.
Definition at line 1264 of file class.ilObjMediaPoolGUI.php.
References $_GET, $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilObjectGUI\$tree, initMediaPoolPageForm(), and ilUtil\sendSuccess().
ilObjMediaPoolGUI::setMediaPoolPageTabs | ( | ) |
Set media pool page tabs.
@return |
Definition at line 1375 of file class.ilObjMediaPoolGUI.php.
References $_GET, $ilCtrl, and ilObjectGUI\$lng.
Referenced by editMediaPoolPage(), executeCommand(), and showMediaPoolPageUsages().
ilObjMediaPoolGUI::setTabs | ( | ) |
Set tabs.
Reimplemented from ilObject2GUI.
Definition at line 1422 of file class.ilObjMediaPoolGUI.php.
References $_GET, and $ilCtrl.
ilObjMediaPoolGUI::showFullscreen | ( | ) |
show fullscreen
Definition at line 767 of file class.ilObjMediaPoolGUI.php.
References showMedia().
ilObjMediaPoolGUI::showMedia | ( | ) |
show media object
Definition at line 704 of file class.ilObjMediaPoolGUI.php.
References $_GET, $params, ilMediaItem\_getMapAreasIntLinks(), ilObjStyleSheet\getContentStylePath(), ilUtil\getImagePath(), ilUtil\getStyleSheetLocation(), ilUtil\getWebspaceDir(), IL_MODE_ALIAS, IL_MODE_OUTPUT, xslt_create(), xslt_error(), xslt_free(), and xslt_process().
Referenced by showFullscreen().
ilObjMediaPoolGUI::showMediaPoolPageUsages | ( | ) |
List all usages of the contnet snippet.
Definition at line 1394 of file class.ilObjMediaPoolGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, and setMediaPoolPageTabs().
ilObjMediaPoolGUI::update | ( | ) |
update properties
Definition at line 436 of file class.ilObjMediaPoolGUI.php.
References updateObject().
Referenced by updateObject().
ilObjMediaPoolGUI::updateFolder | ( | ) |
Update folder.
Definition at line 1151 of file class.ilObjMediaPoolGUI.php.
References $_GET, $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, initFolderForm(), and ilUtil\sendSuccess().
ilObjMediaPoolGUI::updateMediaPoolPage | ( | ) |
Update media pool page.
Definition at line 1305 of file class.ilObjMediaPoolGUI.php.
References $_GET, $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, initMediaPoolPageForm(), and ilUtil\sendSuccess().
ilObjMediaPoolGUI::updateObject | ( | ) |
updates object entry in object_data
public
Reimplemented from ilObject2GUI.
Definition at line 453 of file class.ilObjMediaPoolGUI.php.
References $_POST, ilObjectGUI\$lng, ilObjectGUI\$tpl, afterUpdate(), initEditForm(), ilUtil\sendSuccess(), and update().
Referenced by update().
ilObjMediaPoolGUI::view | ( | ) |
Definition at line 295 of file class.ilObjMediaPoolGUI.php.
References ilObject2GUI\viewObject().
ilObjMediaPoolGUI::$output_prepared |
Definition at line 26 of file class.ilObjMediaPoolGUI.php.