6include_once(
"./Services/Object/classes/class.ilObject2GUI.php");
 
    7include_once(
"./Modules/MediaPool/classes/class.ilObjMediaPool.php");
 
    8include_once(
"./Services/Table/classes/class.ilTableGUI.php");
 
    9include_once(
"./Modules/Folder/classes/class.ilObjFolderGUI.php");
 
   10include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
 
   11include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
 
   12include_once(
"./Services/Clipboard/classes/class.ilEditClipboardGUI.php");
 
   61    public function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
 
   67        $this->tabs = 
$DIC->tabs();
 
   68        $this->
error = $DIC[
"ilErr"];
 
   69        $this->locator = 
$DIC[
"ilLocator"];
 
   70        $this->
help = $DIC[
"ilHelp"];
 
   72        $this->main_tpl = 
$DIC->ui()->mainTemplate();
 
   74        $this->upload = 
$DIC->upload();
 
   88        $lng->loadLanguageModule(
"mep");
 
   90        if ($this->ctrl->getCmd() == 
"explorer") {
 
   91            $this->ctrl->saveParameter($this, array(
"ref_id"));
 
   93            $this->ctrl->saveParameter($this, array(
"ref_id", 
"mepitem_id"));
 
   95        $this->ctrl->saveParameter($this, array(
"mep_mode"));
 
   97        $lng->loadLanguageModule(
"content");
 
  122        if ($this->ctrl->getRedirectSource() == 
"ilinternallinkgui") {
 
  127        $next_class = $this->ctrl->getNextClass($this);
 
  128        $cmd = $this->ctrl->getCmd();
 
  129        $new_type = 
$_POST[
"new_type"]
 
  133        if ($new_type != 
"" && ($cmd != 
"confirmRemove" && $cmd != 
"copyToClipboard" 
  134            && $cmd != 
"pasteFromClipboard")) {
 
  139            $tree = $this->
object->getTree();
 
  140            if (
$_GET[
"mepitem_id"] == 
"") {
 
  144        if ($cmd == 
"create") {
 
  145            switch (
$_POST[
"new_type"]) {
 
  147                    $this->ctrl->redirectByClass(
"ilobjmediaobjectgui", 
"create");
 
  151                    $this->ctrl->redirectByClass(
"ilobjfoldergui", 
"create");
 
  156        switch ($next_class) {
 
  157            case 'ilobjectmetadatagui':
 
  163                $this->tabs_gui->activateTab(
'meta_data');
 
  164                include_once 
'Services/Object/classes/class.ilObjectMetaDataGUI.php';
 
  166                $this->ctrl->forwardCommand($md_gui);
 
  167                $this->tpl->printToStdout();
 
  171            case 'ilmediapoolpagegui':
 
  175                $ilTabs->clearTargets();
 
  176                include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPageGUI.php");
 
  179                if (!$ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
  180                    $mep_page_gui->setEnableEditing(
false);
 
  182                $ret = $this->ctrl->forwardCommand($mep_page_gui);
 
  187                $this->tpl->printToStdout();
 
  190            case "ilobjmediaobjectgui":
 
  192                if ($cmd == 
"create" || $cmd == 
"save" || $cmd == 
"cancel") {
 
  193                    $ret_obj = 
$_GET[
"mepitem_id"];
 
  195                    $ilObjMediaObjectGUI->setWidthPreset($this->object->getDefaultWidth());
 
  196                    $ilObjMediaObjectGUI->setHeightPreset($this->object->getDefaultHeight());
 
  198                    $ret_obj = 
$tree->getParentId(
$_GET[
"mepitem_id"]);
 
  201                    $ilTabs->setBackTarget(
 
  203                        $this->ctrl->getLinkTarget(
 
  205                            $_GET[
"mep_mode"] ? 
$_GET[
"mep_mode"] : 
"listMedia" 
  209                if ($this->ctrl->getCmdClass() == 
"ilinternallinkgui") {
 
  210                    $this->ctrl->setReturn($this, 
"explorer");
 
  212                    $this->ctrl->setParameter($this, 
"mepitem_id", $ret_obj);
 
  213                    $this->ctrl->setReturn(
 
  215                        $_GET[
"mep_mode"] ? 
$_GET[
"mep_mode"] : 
"listMedia" 
  217                    $this->ctrl->setParameter($this, 
"mepitem_id", 
$_GET[
"mepitem_id"]);
 
  220                $ilObjMediaObjectGUI->setTabs();
 
  224                $ilObjMediaObjectGUI->setAdvMdRecordObject($this->object->getRefId(), 
"mep", 
"mob");
 
  226                $ret = $this->ctrl->forwardCommand($ilObjMediaObjectGUI);
 
  228                if ($cmd == 
"save" && 
$ret != 
false) {
 
  230                    $mep_item->setTitle(
$ret->getTitle());
 
  231                    $mep_item->setType(
"mob");
 
  232                    $mep_item->setForeignId(
$ret->getId());
 
  235                    $parent = (
$_GET[
"mepitem_id"] == 
"")
 
  237                        : 
$_GET[
"mepitem_id"];
 
  238                    $tree->insertNode($mep_item->getId(), $parent);
 
  239                    ilUtil::redirect(
"ilias.php?baseClass=ilMediaPoolPresentationGUI&cmd=listMedia&ref_id=" .
 
  240                        $_GET[
"ref_id"] . 
"&mepitem_id=" . 
$_GET[
"mepitem_id"]);
 
  242                    $this->tpl->printToStdout();
 
  246            case "ilobjfoldergui":
 
  250                $this->ctrl->setReturn($this, 
"listMedia");
 
  256                        $folder_gui->setFormAction(
 
  258                            $this->ctrl->getFormActionByClass(
"ilobjfoldergui")
 
  260                        $folder_gui->createObject();
 
  261                        $this->tpl->printToStdout();
 
  266                        $parent = (
$_GET[
"mepitem_id"] == 
"")
 
  268                            : 
$_GET[
"mepitem_id"];
 
  269                        $folder_gui->setFolderTree(
$tree);
 
  270                        $folder_gui->saveObject($parent);
 
  277                        $this->ctrl->setParameter($this, 
"foldereditmode", 
"1");
 
  278                        $folder_gui->setFormAction(
"update", $this->ctrl->getFormActionByClass(
"ilobjfoldergui"));
 
  279                        $folder_gui->editObject();
 
  280                        $this->tpl->printToStdout();
 
  286                        $this->ctrl->setReturn($this, 
"listMedia");
 
  287                        $folder_gui->updateObject(
true);                
 
  291                        if (
$_GET[
"foldereditmode"]) {
 
  294                        $this->ctrl->redirect($this, 
"listMedia");
 
  299            case "ileditclipboardgui":
 
  302                $this->ctrl->setReturn($this, 
$_GET[
"mep_mode"] ? 
$_GET[
"mep_mode"] : 
"listMedia");
 
  304                $clip_gui->setMultipleSelections(
true);
 
  305                $clip_gui->setInsertButtonTitle(
$lng->txt(
"mep_copy_to_mep"));
 
  306                $ilTabs->setTabActive(
"clipboard");
 
  307                $this->ctrl->forwardCommand($clip_gui);
 
  308                $this->tpl->printToStdout();
 
  311            case 'ilinfoscreengui':
 
  315                $this->tpl->printToStdout();
 
  318            case 'ilpermissiongui':
 
  322                include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
  324                $this->ctrl->forwardCommand($perm_gui);
 
  325                $this->tpl->printToStdout();
 
  332                include_once(
"./Services/Export/classes/class.ilExportGUI.php");
 
  334                $exp_gui->addFormat(
"xml");
 
  335                include_once(
"./Services/Object/classes/class.ilObjectTranslation.php");
 
  337                if ($ot->getContentActivated()) {
 
  338                    $exp_gui->addFormat(
"xml_master", 
"XML (" . 
$lng->txt(
"mep_master_language_only") . 
")", $this, 
"export");
 
  339                    $exp_gui->addFormat(
"xml_masternomedia", 
"XML (" . 
$lng->txt(
"mep_master_language_only_no_media") . 
")", $this, 
"export");
 
  341                $this->ctrl->forwardCommand($exp_gui);
 
  342                $this->tpl->printToStdout();
 
  345            case "ilfilesystemgui":
 
  349                $ilTabs->clearTargets();
 
  350                $ilTabs->setBackTarget(
 
  352                    $ilCtrl->getLinkTarget($this, 
"listMedia")
 
  355                if (trim($mset->get(
"upload_dir")) != 
"") {
 
  356                    include_once(
"./Services/FileSystem/classes/class.ilFileSystemGUI.php");
 
  358                    $fs_gui->setPostDirPath(
true);
 
  359                    $fs_gui->setTableId(
"mepud" . $this->object->getId());
 
  360                    $fs_gui->setAllowFileCreation(
false);
 
  361                    $fs_gui->setAllowDirectoryCreation(
false);
 
  362                    $fs_gui->clearCommands();
 
  365                        "selectUploadDirFiles",
 
  366                        $this->lng->txt(
"mep_sel_upload_dir_files"),
 
  370                    $this->ctrl->forwardCommand($fs_gui);
 
  372                $this->tpl->printToStdout();
 
  375            case "ilcommonactiondispatchergui":
 
  376                include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
 
  378                $this->ctrl->forwardCommand($gui);
 
  381            case 'ilobjecttranslationgui':
 
  385                $ilTabs->activateTab(
"settings");
 
  387                include_once(
"./Services/Object/classes/class.ilObjectTranslationGUI.php");
 
  389                $transgui->setTitleDescrOnlyMode(
false);
 
  390                $this->ctrl->forwardCommand($transgui);
 
  391                $this->tpl->printToStdout();
 
  394            case "ilmediapoolimportgui":
 
  398                $ilTabs->activateTab(
"import");
 
  399                include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolImportGUI.php");
 
  401                $this->ctrl->forwardCommand($gui);
 
  402                $this->tpl->printToStdout();
 
  405            case "ilmobmultisrtuploadgui":
 
  411                include_once(
"./Services/MediaObjects/classes/class.ilMobMultiSrtUploadGUI.php");
 
  412                include_once(
"./Modules/MediaPool/classes/class.ilMepMultiSrt.php");
 
  414                $this->ctrl->forwardCommand($gui);
 
  415                $this->tpl->printToStdout();
 
  422                $cmd = $this->ctrl->getCmd(
"listMedia");
 
  425                    $this->tpl->printToStdout();
 
  436        $this->ctrl->redirectByClass(
"ilobjmediaobjectgui", 
"create");
 
  441        $forms = array(self::CFORM_NEW => $this->
initCreateForm($a_new_type),
 
  453        ilUtil::sendSuccess($this->lng->txt(
"object_added"), 
true);
 
  456        ilUtil::redirect(
"ilias.php?baseClass=ilMediaPoolPresentationGUI&ref_id=" . $newObj->
getRefId() . 
"&cmd=listMedia");
 
  464        $ni = 
new ilNumberInputGUI($this->lng->txt(
"mep_default_width"), 
"default_width");
 
  466        $ni->setSuffix(
"px");
 
  467        $ni->setMaxLength(5);
 
  472        $ni = 
new ilNumberInputGUI($this->lng->txt(
"mep_default_height"), 
"default_height");
 
  473        $ni->setSuffix(
"px");
 
  475        $ni->setMaxLength(5);
 
  477        $ni->setInfo($this->lng->txt(
"mep_default_width_height_info"));
 
  482        $pres->setTitle($this->lng->txt(
'obj_presentation'));
 
  486        $obj_service->commonSettings()->legacyForm($a_form, $this->
object)->addTileImage();
 
  490        $feat->setTitle($this->lng->txt(
'obj_features'));
 
  493        include_once 
'./Services/Container/classes/class.ilContainer.php';
 
  494        include_once 
'./Services/Object/classes/class.ilObjectServiceSettingsGUI.php';
 
  496            $this->object->getId(),
 
  518            $ilErr->raiseError($this->lng->txt(
"msg_no_perm_write"), 
$ilErr->MESSAGE);
 
  521        $ilTabs->activateTab(
"settings");
 
  526            $form->setValuesByArray($values, 
true);
 
  531        $tpl->setContent($form->getHTML());
 
  537        if ($this->object->getDefaultWidth() > 0) {
 
  538            $a_values[
"default_width"] = $this->
object->getDefaultWidth();
 
  540        if ($this->object->getDefaultHeight() > 0) {
 
  541            $a_values[
"default_height"] = $this->
object->getDefaultHeight();
 
  549        $this->
object->setDefaultWidth($a_form->
getInput(
"default_width"));
 
  550        $this->
object->setDefaultHeight($a_form->
getInput(
"default_height"));
 
  554        include_once 
'./Services/Object/classes/class.ilObjectServiceSettingsGUI.php';
 
  556            $this->object->getId(),
 
  564        $obj_service->commonSettings()->legacyForm($a_form, $this->
object)->saveTileImage();
 
  579        $ilCtrl->setParameter($this, 
"mep_mode", 
"listMedia");
 
  583        $ilTabs->setTabActive(
"content");
 
  586        if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
  587            $ilToolbar->addButton(
 
  588                $lng->txt(
"mep_create_mob"),
 
  589                $ilCtrl->getLinkTarget($this, 
"createMediaObject")
 
  593            if ($mset->get(
"mep_activate_pages")) {
 
  594                $ilToolbar->addButton(
 
  595                    $lng->txt(
"mep_create_content_snippet"),
 
  596                    $ilCtrl->getLinkTarget($this, 
"createMediaPoolPage")
 
  600            $ilToolbar->addButton(
 
  601                $lng->txt(
"mep_create_folder"),
 
  602                $ilCtrl->getLinkTarget($this, 
"createFolderForm")
 
  606                $ilToolbar->addButton(
 
  607                    $lng->txt(
"mep_create_from_upload_dir"),
 
  608                    $ilCtrl->getLinkTargetByClass(
"ilfilesystemgui", 
"listFiles")
 
  612            $ilToolbar->addButton(
 
  613                $lng->txt(
"mep_bulk_upload"),
 
  614                $ilCtrl->getLinkTarget($this, 
"bulkUpload")
 
  619        $tpl->setContent($mep_table_gui->getHTML());
 
  628        $exp->toggleExplorerNodeState();
 
  641        $ilCtrl->setParameter($this, 
"mep_mode", 
"allMedia");
 
  644        $ilTabs->setTabActive(
"content");
 
  648        include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolTableGUI.php");
 
  659        if (isset(
$_GET[
'force_filter']) and 
$_GET[
'force_filter']) {
 
  662            include_once(
"./Services/Table/classes/class.ilTablePropertiesStorage.php");
 
  664            $tprop->storeProperty(
 
  665                $mep_table_gui->getId(),
 
  670            $mep_table_gui->resetFilter();
 
  671            $mep_table_gui->resetOffset();
 
  672            $mep_table_gui->writeFilterToSession();
 
  685        $tpl->setContent($mep_table_gui->getHTML());
 
  693        include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolTableGUI.php");
 
  702        $mtab->writeFilterToSession();
 
  703        $mtab->resetOffset();
 
  712        include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolTableGUI.php");
 
  721        $mtab->resetFilter();
 
  722        $mtab->resetOffset();
 
  731        $this->tpl->loadStandardTemplate();
 
  740        if (
$_GET[
"mepitem_id"] == 
"") {
 
  743        $par_id = $this->
object->getPoolTree()->getParentId(
$_GET[
"mepitem_id"]);
 
  744        if ($par_id != $this->object->getPoolTree()->getRootId()) {
 
  759        $mob_id = $item->getForeignId();
 
  761        $this->tpl = 
new ilGlobalTemplate(
"tpl.fullscreen.html", 
true, 
true, 
"Services/COPage");
 
  762        include_once(
"Services/Style/Content/classes/class.ilObjStyleSheet.php");
 
  764        $this->tpl->setVariable(
 
  765            "LOCATION_CONTENT_STYLESHEET",
 
  770        require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
 
  771        require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
 
  776        $this->tpl->setVariable(
"TITLE", 
" - " . $media_obj->getTitle());
 
  786        $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
 
  787        $args = array( 
'/_xml' => 
$xml, 
'/_xsl' => $xsl );
 
  792        $mode = (
$_GET[
"cmd"] != 
"showPreview")
 
  797            $this->ctrl->getLinkTarget($this, 
"showFullscreen", 
"", 
false, 
false);
 
  798        $params = array(
'mode' => $mode, 
'enlarge_path' => $enlarge_path,
 
  799            'link_params' => 
"ref_id=" . 
$_GET[
"ref_id"],
'fullscreen_link' => $fullscreen_link,
 
  800            'ref_id' => 
$_GET[
"ref_id"], 
'pg_frame' => $pg_frame, 
'webspace_path' => $wb_path);
 
  801        $output = xslt_process($xh, 
"arg:/_xml", 
"arg:/_xsl", 
null, $args, $params);
 
  805        $this->tpl->setVariable(
"MEDIA_CONTENT", $output);
 
  827        $page_gui->setTemplate(
$tpl);
 
  829        $page_gui->setTemplateOutput(
false);
 
  830        $page_gui->setHeader(
"");
 
  831        $ret = $page_gui->showPage(
true);
 
  834        $tpl->setVariable(
"MEDIA_CONTENT", 
"<div>" . 
$ret . 
"</div>");
 
  837        $tpl->printToStdout();
 
  851        switch ($item->getType()) {
 
  882        if (!isset(
$_POST[
"id"])) {
 
  883            $ilErr->raiseError($this->lng->txt(
"no_checkbox"), 
$ilErr->MESSAGE);
 
  887        include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
 
  889        $cgui->setFormAction($this->ctrl->getFormAction($this));
 
  890        $cgui->setHeaderText($this->lng->txt(
"info_remove_sure"));
 
  891        $cgui->setCancel($this->lng->txt(
"cancel"), 
"cancelRemove");
 
  892        $cgui->setConfirm($this->lng->txt(
"confirm"), 
"remove");
 
  901                include_once(
"./Services/COPage/classes/class.ilPageContentUsage.php");
 
  903                if (count($usages) > 0) {
 
  905                    $ilCtrl->redirect($this, 
"listMedia");
 
  909                    if (count($usages) > 0) {
 
  910                        $add = 
"<div class='small'>" . 
$lng->txt(
"mep_content_snippet_used_in_older_versions") . 
"</div>";
 
  918            $cgui->addItem(
"id[]", 
$obj_id, $caption);
 
  921        $this->tpl->setContent($cgui->getHTML());
 
  935            "ileditclipboardgui",
 
  937            rawurlencode(
$ilCtrl->getLinkTarget(
 
  939                "insertFromClipboard",
 
  945        $ilCtrl->redirectByClass(
"ilEditClipboardGUI", 
"getObject");
 
  958        include_once(
"./Services/Clipboard/classes/class.ilEditClipboardGUI.php");
 
  960        $not_inserted = array();
 
  961        if (is_array($ids)) {
 
  962            foreach ($ids as $id2) {
 
  963                $id = explode(
":", $id2);
 
  967                if (
$type == 
"mob") {           
 
  968                    if (ilObjMEdiaPool::isForeignIdInTree($this->object->getId(), $id)) {
 
  973                        $item->setType(
"mob");
 
  974                        $item->setForeignId($id);
 
  977                        if ($item->getId() > 0) {
 
  978                            $this->
object->insertInTree($item->getId(), 
$_GET[
"mepitem_id"]);
 
  982                if (
$type == 
"incl") {          
 
  983                    include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
 
  984                    include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolItem.php");
 
  985                    if (ilObjMEdiaPool::isItemIdInTree($this->object->getId(), $id)) {
 
  993                        $item->setType(
"pg");
 
  996                        if ($item->getId() > 0) {
 
  997                            $this->
object->insertInTree($item->getId(), 
$_GET[
"mepitem_id"]);
 
 1000                            include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
 
 1002                            $page->setId($item->getId());
 
 1003                            $page->setParentId($this->object->getId());
 
 1007                            $original->copy($page->getId(), $page->getParentType(), $page->getParentId(), 
true);
 
 1013        if (count($not_inserted) > 0) {
 
 1014            ilUtil::sendInfo($this->lng->txt(
"mep_not_insert_already_exist") . 
"<br>" .
 
 1015                implode(
"<br>", $not_inserted), 
true);
 
 1017        $this->ctrl->redirect($this, 
$_GET[
"mep_mode"] ? 
$_GET[
"mep_mode"] : 
"listMedia");
 
 1026        $this->ctrl->redirect($this, 
$_GET[
"mep_mode"] ? 
$_GET[
"mep_mode"] : 
"listMedia");
 
 1032    public function remove()
 
 1039            $this->
object->deleteChild($obj_id);
 
 1042        ilUtil::sendSuccess($this->lng->txt(
"cont_obj_removed"), 
true);
 
 1043        $this->ctrl->redirect($this, 
$_GET[
"mep_mode"] ? 
$_GET[
"mep_mode"] : 
"listMedia");
 
 1057        if (!isset(
$_POST[
"id"])) {
 
 1059            $this->ctrl->redirect($this, 
$_GET[
"mep_mode"] ? 
$_GET[
"mep_mode"] : 
"listMedia");
 
 1064            if (
$type == 
"fold") {
 
 1066                $this->ctrl->redirect($this, 
$_GET[
"mep_mode"] ? 
$_GET[
"mep_mode"] : 
"listMedia");
 
 1072            if (
$type == 
"mob") {
 
 1073                $ilUser->addObjectToClipboard($fid, 
"mob", 
"");
 
 1075            if (
$type == 
"pg") {
 
 1079        ilUtil::sendSuccess($this->lng->txt(
"copied_to_clipboard"), 
true);
 
 1080        $this->ctrl->redirect($this, 
$_GET[
"mep_mode"] ? 
$_GET[
"mep_mode"] : 
"listMedia");
 
 1091        if (!$this->
getCreationMode() && $this->ctrl->getCmd() != 
"explorer") {
 
 1092            $tree = $this->
object->getTree();
 
 1094                ? 
$tree->getRootId()
 
 1095                : 
$_GET[
"mepitem_id"];
 
 1097            foreach ($path as $node) {
 
 1098                if ($node[
"child"] == 
$tree->getRootId()) {
 
 1099                    $this->ctrl->setParameter($this, 
"mepitem_id", 
"");
 
 1100                    if ($ilAccess->checkAccess(
"read", 
"", $this->object->getRefId())) {
 
 1101                        $link = $this->ctrl->getLinkTarget($this, 
"listMedia");
 
 1102                    } elseif ($ilAccess->checkAccess(
"visible", 
"", $this->object->getRefId())) {
 
 1103                        $link = $this->ctrl->getLinkTarget($this, 
"infoScreen");
 
 1105                    $title = $this->
object->getTitle();
 
 1106                    $this->ctrl->setParameter($this, 
"mepitem_id", 
$_GET[
"mepitem_id"]);
 
 1107                    $ilLocator->addItem($title, $link, 
"", 
$_GET[
"ref_id"]);
 
 1128        $tpl->setContent($this->form->getHTML());
 
 1145        $tpl->setContent($this->form->getHTML());
 
 1157        $this->form->setValuesByArray($values);
 
 1172        if ($this->form->checkInput()) {
 
 1173            if ($this->object->createFolder(
$_POST[
"title"], (
int) 
$_GET[
"mepitem_id"])) {
 
 1174                ilUtil::sendSuccess(
$lng->txt(
"mep_folder_created"), 
true);
 
 1176            $ilCtrl->redirect($this, 
"listMedia");
 
 1179        $this->form->setValuesByPost();
 
 1180        $tpl->setContent($this->form->getHtml());
 
 1195        if ($this->form->checkInput()) {
 
 1197            $item->setTitle(
$_POST[
"title"]);
 
 1199            ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 1203                $this->object->getTree()->getParentId(
$_GET[
"mepitem_id"])
 
 1205            $ilCtrl->redirect($this, 
"listMedia");
 
 1208        $this->form->setValuesByPost();
 
 1209        $tpl->setContent($this->form->getHtml());
 
 1222        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1227        $ti->setMaxLength(128);
 
 1228        $ti->setRequired(
true);
 
 1229        $this->form->addItem($ti);
 
 1232        if ($a_mode == 
"create") {
 
 1233            $this->form->addCommandButton(
"saveFolder", 
$lng->txt(
"save"));
 
 1234            $this->form->addCommandButton(
"cancelSave", 
$lng->txt(
"cancel"));
 
 1235            $this->form->setTitle(
$lng->txt(
"mep_new_folder"));
 
 1237            $this->form->addCommandButton(
"updateFolder", 
$lng->txt(
"save"));
 
 1238            $this->form->addCommandButton(
"cancelFolderUpdate", 
$lng->txt(
"cancel"));
 
 1239            $this->form->setTitle(
$lng->txt(
"mep_edit_folder"));
 
 1242        $this->form->setFormAction(
$ilCtrl->getFormAction($this));
 
 1254            $this->object->getTree()->getParentId(
$_GET[
"mepitem_id"])
 
 1256        $ilCtrl->redirect($this, 
"listMedia");
 
 1265        $ilCtrl->redirect($this, 
"listMedia");
 
 1282        $tpl->setContent($this->form->getHTML());
 
 1298        $ilTabs->clearTargets();
 
 1300        include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPageGUI.php");
 
 1302        $mep_page_gui->getTabs();
 
 1308        $tpl->setContent($this->form->getHTML());
 
 1323        if ($this->form->checkInput()) {
 
 1325            include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolItem.php");
 
 1327            $item->setTitle(
$_POST[
"title"]);
 
 1328            $item->setType(
"pg");
 
 1331            if ($item->getId() > 0) {
 
 1333                $tree = $this->
object->getTree();
 
 1334                $parent = 
$_GET[
"mepitem_id"] > 0
 
 1335                    ? 
$_GET[
"mepitem_id"]
 
 1336                    : 
$tree->getRootId();
 
 1337                $this->
object->insertInTree($item->getId(), $parent);
 
 1340                include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
 
 1342                $page->setId($item->getId());
 
 1343                $page->setParentId($this->object->getId());
 
 1346                $ilCtrl->setParameterByClass(
"ilmediapoolpagegui", 
"mepitem_id", $item->getId());
 
 1347                $ilCtrl->redirectByClass(
"ilmediapoolpagegui", 
"edit");
 
 1349            $ilCtrl->redirect($this, 
"listMedia");
 
 1352        $this->form->setValuesByPost();
 
 1353        $tpl->setContent($this->form->getHtml());
 
 1368        if ($this->form->checkInput()) {
 
 1370            $item->setTitle(
$_POST[
"title"]);
 
 1372            ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 1373            $ilCtrl->redirect($this, 
"editMediaPoolPage");
 
 1376        $this->form->setValuesByPost();
 
 1377        $tpl->setContent($this->form->getHtml());
 
 1389        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1394        $ti->setMaxLength(128);
 
 1395        $ti->setRequired(
true);
 
 1396        $this->form->addItem($ti);
 
 1399        if ($a_mode == 
"create") {
 
 1400            $this->form->addCommandButton(
"saveMediaPoolPage", 
$lng->txt(
"save"));
 
 1401            $this->form->addCommandButton(
"cancelSave", 
$lng->txt(
"cancel"));
 
 1402            $this->form->setTitle(
$lng->txt(
"mep_new_content_snippet"));
 
 1404            $this->form->addCommandButton(
"updateMediaPoolPage", 
$lng->txt(
"save"));
 
 1405            $this->form->setTitle(
$lng->txt(
"mep_edit_content_snippet"));
 
 1408        $this->form->setFormAction(
$ilCtrl->getFormAction($this));
 
 1418        include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolItem.php");
 
 1421        $this->form->setValuesByArray($values);
 
 1438            $ilCtrl->getLinkTarget($this, 
"showMediaPoolPageUsages"),
 
 1439            array(
"showMediaPoolPageUsages", 
"showAllMediaPoolPageUsages"),
 
 1444            $ilCtrl->getLinkTarget($this, 
"editMediaPoolPage"),
 
 1445            "editMediaPoolPage",
 
 1448        $ilCtrl->setParameter($this, 
"mepitem_id", $this->object->getPoolTree()->getParentId(
$_GET[
"mepitem_id"]));
 
 1449        $ilTabs->setBackTarget(
$lng->txt(
"mep_folder"), 
$ilCtrl->getLinkTarget($this, 
"listMedia"));
 
 1450        $ilCtrl->setParameter($this, 
"mepitem_id", 
$_GET[
"mepitem_id"]);
 
 1474        $ilTabs->clearTargets();
 
 1478            $lng->txt(
"cont_current_usages"),
 
 1479            $ilCtrl->getLinkTarget($this, 
"showMediaPoolPageUsages")
 
 1484            $lng->txt(
"cont_all_usages"),
 
 1485            $ilCtrl->getLinkTarget($this, 
"showAllMediaPoolPageUsages")
 
 1489            $ilTabs->activateSubTab(
"all_usages");
 
 1490            $cmd = 
"showAllMediaPoolPageUsages";
 
 1492            $ilTabs->activateSubTab(
"current_usages");
 
 1493            $cmd = 
"showMediaPoolPageUsages";
 
 1497        include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPageGUI.php");
 
 1499        $mep_page_gui->getTabs();
 
 1503        include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
 
 1506        include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPageUsagesTableGUI.php");
 
 1509        $tpl->setContent($table->getHTML());
 
 1528        $ilTabs->addSubTab(
"content", $this->lng->txt(
"objs_fold"), $this->ctrl->getLinkTarget($this, 
""));
 
 1530        $ilCtrl->setParameter($this, 
"mepitem_id", 
"");
 
 1531        $ilTabs->addSubTab(
"mep_all_mobs", $this->lng->txt(
"mep_all_mobs"), $this->ctrl->getLinkTarget($this, 
"allMedia"));
 
 1532        $ilCtrl->setParameter($this, 
"mepitem_id", 
$_GET[
"mepitem_id"]);
 
 1534        if ($ilAccess->checkAccess(
'write', 
'', $this->ref_id)) {
 
 1537                $this->lng->txt(
"mep_media_subtitles"),
 
 1538                $ilCtrl->getLinkTargetByClass(
"ilmobmultisrtuploadgui", 
"")
 
 1542        $ilTabs->activateSubTab($a_active);
 
 1556        $ilHelp->setScreenIdComponent(
"mep");
 
 1558        if ($ilAccess->checkAccess(
'read', 
'', $this->ref_id) ||
 
 1559            $ilAccess->checkAccess(
'write', 
'', $this->ref_id)) {
 
 1560            $ilTabs->addTab(
"content", $this->lng->txt(
"mep_content"), $this->ctrl->getLinkTarget($this, 
""));
 
 1564        if ($ilAccess->checkAccess(
'visible', 
'', $this->ref_id) ||
 
 1565            $ilAccess->checkAccess(
'read', 
'', $this->ref_id) ||
 
 1566            $ilAccess->checkAccess(
'write', 
'', $this->ref_id)) {
 
 1567            $force_active = ($this->ctrl->getNextClass() == 
"ilinfoscreengui" 
 1568                || strtolower(
$_GET[
"cmdClass"]) == 
"ilnotegui")
 
 1573                $this->ctrl->getLinkTargetByClass(
 
 1574                    array(
"ilobjmediapoolgui", 
"ilinfoscreengui"),
 
 1577                array(
"showSummary", 
"infoScreen"),
 
 1584        if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
 1587                $this->ctrl->getLinkTarget($this, 
"edit"),
 
 1589                array(
"", 
"ilobjmediapoolgui")
 
 1593        if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
 1596                $this->ctrl->getLinkTarget($this, 
"openClipboard"),
 
 1598                "ileditclipboardgui" 
 1603        if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
 1605            include_once 
"Services/Object/classes/class.ilObjectMetaDataGUI.php";
 
 1607            $mdtab = $mdgui->getTab();
 
 1613                    "ilobjectmetadatagui" 
 1618        if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
 1621                $this->ctrl->getLinkTargetByClass(
"ilexportgui", 
""),
 
 1628                $this->ctrl->getLinkTargetByClass(
"ilmediapoolimportgui", 
""),
 
 1630                "ilmediapoolimportgui" 
 1634        if ($ilAccess->checkAccess(
"edit_permission", 
"", $this->object->getRefId())) {
 
 1637                $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'), 
"perm"),
 
 1638                array(
"perm",
"info",
"owner"),
 
 1656        if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
 1659                $lng->txt(
"settings"),
 
 1660                $this->ctrl->getLinkTarget($this, 
"edit")
 
 1664            if ($mset->get(
"mep_activate_pages")) {
 
 1665                $ilTabs->addSubTabTarget(
 
 1666                    "obj_multilinguality",
 
 1667                    $this->ctrl->getLinkTargetByClass(
"ilobjecttranslationgui", 
"")
 
 1672        $ilTabs->setSubTabActive($a_active);
 
 1683        $ilAccess = 
$DIC->access();
 
 1687        $targets = explode(
'_', $a_target);
 
 1688        if (count((array) $targets) > 1) {
 
 1690            $subitem_id = $targets[1];
 
 1695        if ($ilAccess->checkAccess(
"read", 
"", 
$ref_id)) {
 
 1696            $_GET[
"baseClass"] = 
"ilMediaPoolPresentationGUI";
 
 1698            $_GET[
'mepitem_id'] = $subitem_id;
 
 1699            include(
"ilias.php");
 
 1701        } elseif ($ilAccess->checkAccess(
"visible", 
"", 
$ref_id)) {
 
 1702            $_GET[
"baseClass"] = 
"ilMediaPoolPresentationGUI";
 
 1704            $_GET[
"cmd"] = 
"infoScreen";
 
 1705            include(
"ilias.php");
 
 1707        } elseif ($ilAccess->checkAccess(
"read", 
"", ROOT_FOLDER_ID)) {
 
 1709                $lng->txt(
"msg_no_perm_read_item"),
 
 1725        $this->ctrl->setCmd(
"showSummary");
 
 1726        $this->ctrl->setCmdClass(
"ilinfoscreengui");
 
 1735        $this->tabs->activateTab(
"info_short");
 
 1739        if (!$ilAccess->checkAccess(
"visible", 
"", $this->ref_id) &&
 
 1740            !$ilAccess->checkAccess(
"read", 
"", $this->ref_id) &&
 
 1741            !$ilAccess->checkAccess(
"write", 
"", $this->ref_id)) {
 
 1742            $ilErr->raiseError($this->lng->txt(
"msg_no_perm_read"), 
$ilErr->MESSAGE);
 
 1745        if ($this->ctrl->getCmd() == 
"infoScreen") {
 
 1746            $this->ctrl->setCmd(
"showSummary");
 
 1747            $this->ctrl->setCmdClass(
"ilinfoscreengui");
 
 1750        include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
 
 1753        $info->enablePrivateNotes();
 
 1757        $info->addMetaDataSections($this->object->getId(), 0, $this->object->getType());
 
 1760        $this->ctrl->forwardCommand($info);
 
 1780            $a_files = 
$_POST[
"file"];
 
 1783        $ilTabs->clearTargets();
 
 1784        $ilTabs->setBackTarget(
 
 1786            $ilCtrl->getLinkTarget($this, 
"listMedia")
 
 1794            include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
 
 1796                "rename" => 
$lng->txt(
"mep_up_dir_move"),
 
 1797                "copy" => 
$lng->txt(
"mep_up_dir_copy"),
 
 1800            $si->setOptions($options);
 
 1801            $ilToolbar->addInputItem(
$si);
 
 1802            $ilToolbar->setCloseFormTag(
false);
 
 1803            $ilToolbar->setFormAction(
$ilCtrl->getFormAction($this));
 
 1804            $ilToolbar->setFormName(
"mep_up_form");
 
 1806            include_once(
"./Modules/MediaPool/classes/class.ilUploadDirFilesTableGUI.php");
 
 1809                "selectUploadDirFiles",
 
 1812            $tab->setFormName(
"mep_up_form");
 
 1825        $upload_dir = trim($mset->get(
"upload_dir"));
 
 1827        include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
 
 1831                $f = str_replace(
"..", 
"", 
$f);
 
 1832                $fullpath = $upload_dir . 
"/" . 
$f;
 
 1834                $mob->setTitle(basename($fullpath));
 
 1835                $mob->setDescription(
"");
 
 1840                $mob->createDirectory();
 
 1844                $mob->addMediaItem($media_item);
 
 1845                $media_item->setPurpose(
"Standard");
 
 1847                $file = $mob_dir . 
"/" . basename($fullpath);
 
 1853                    ilUtil::redirect(
"ilias.php?baseClass=ilMediaPoolPresentationGUI&cmd=listMedia&ref_id=" .
 
 1854                        $_GET[
"ref_id"] . 
"&mepitem_id=" . 
$_GET[
"mepitem_id"]);
 
 1857                switch (
$_POST[
"action"]) {
 
 1859                        rename($fullpath, $file);
 
 1863                        copy($fullpath, $file);
 
 1872                $media_item->setFormat(
$format);
 
 1874                $media_item->setLocationType(
"LocalFile");
 
 1876                $mob->setDescription(
$format);
 
 1883                    $media_item->getLocation(),
 
 1889                $media_item->setWidth($wh[
"width"]);
 
 1890                $media_item->setHeight($wh[
"height"]);
 
 1891                if ($wh[
"info"] != 
"") {
 
 1895                $media_item->setHAlign(
"Left");
 
 1902                $mep_item->setTitle($mob->getTitle());
 
 1903                $mep_item->setType(
"mob");
 
 1904                $mep_item->setForeignId($mob->getId());
 
 1905                $mep_item->create();
 
 1907                $tree = $this->
object->getTree();
 
 1908                $parent = (
$_GET[
"mepitem_id"] == 
"")
 
 1909                    ? 
$tree->getRootId()
 
 1910                    : 
$_GET[
"mepitem_id"];
 
 1911                $tree->insertNode($mep_item->getId(), $parent);
 
 1914        ilUtil::redirect(
"ilias.php?baseClass=ilMediaPoolPresentationGUI&cmd=listMedia&ref_id=" .
 
 1915            $_GET[
"ref_id"] . 
"&mepitem_id=" . 
$_GET[
"mepitem_id"]);
 
 1929        require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
 
 1932        $tpl->addJavaScript(
"./Modules/MediaPool/js/ilMediaPool.js");
 
 1934        $ilCtrl->setParameterByClass(
"ilobjmediapoolgui", 
"mepitem_id", 
"");
 
 1935        $ilCtrl->setParameterByClass(
"ilobjmediapoolgui", 
"ref_id", $a_mpool_ref_id);
 
 1936        $tpl->addOnloadCode(
"il.MediaPool.setPreviewUrl('" . 
$ilCtrl->getLinkTargetByClass(array(
"ilmediapoolpresentationgui", 
"ilobjmediapoolgui"), 
"showPreview", 
"", 
false, 
false) . 
"');");
 
 1937        $ilCtrl->setParameterByClass(
"ilobjmediapoolgui", 
"mepitem_id", 
$_GET[
"mepitem_id"]);
 
 1938        $ilCtrl->setParameterByClass(
"ilobjmediapoolgui", 
"ref_id", 
$_GET[
"red_id"]);
 
 1940        include_once(
"./Services/UIComponent/Modal/classes/class.ilModalGUI.php");
 
 1942        $modal->setHeading(
$lng->txt(
"preview"));
 
 1943        $modal->setId(
"ilMepPreview");
 
 1945        $modal->setBody(
"<iframe id='ilMepPreviewContent'></iframe>");
 
 1947        return $modal->getHTML();
 
 1957        if ($ot->getContentActivated()) {
 
 1962        $this->
object->exportXML($opt);
 
 1979        $main_tpl->setContent($form->getHTML());
 
 1990        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1993        $form->setFormAction(
$ctrl->getFormAction($this));
 
 1994        $form->setPreventDoubleSubmission(
false);
 
 1998            $lng->txt(
"mep_media_files"),
 
 2001        $item->setUploadUrl(
$ctrl->getLinkTarget($this, 
"performBulkUpload", 
"", 
true, 
true));
 
 2002        $item->setMaxFiles(20);
 
 2003        $form->addItem($item);
 
 2005        $form->addCommandButton(
"performBulkUpload", 
$lng->txt(
"upload"));
 
 2007        $form->setTitle(
$lng->txt(
"mep_bulk_upload"));
 
 2026        if ($form->checkInput()) {
 
 2029            $log->debug(
"checking for uploads...");
 
 2031                $log->debug(
"has upload...");
 
 2034                    $log->debug(
"nr of results: " . count(
$upload->getResults()));
 
 2039                        $mob->setTitle($title);
 
 2040                        $mob->setDescription(
"");
 
 2043                        $mob->createDirectory();
 
 2045                        $mob->addMediaItem($media_item);
 
 2046                        $media_item->setPurpose(
"Standard");
 
 2050                        $file = $mob_dir . 
"/" . $file_name;
 
 2061                        $mep_item->setTitle($title);
 
 2062                        $mep_item->setType(
"mob");
 
 2063                        $mep_item->setForeignId($mob->getId());
 
 2064                        $mep_item->create();
 
 2066                        $tree = $this->
object->getTree();
 
 2067                        $parent = (
$_GET[
"mepitem_id"] == 
"")
 
 2068                            ? 
$tree->getRootId()
 
 2069                            : 
$_GET[
"mepitem_id"];
 
 2070                        $tree->insertNode($mep_item->getId(), $parent);
 
 2077                        $media_item->setFormat(
$format);
 
 2079                        $media_item->setLocationType(
"LocalFile");
 
 2082                        $mep_item_ids[] = $mob->getId();
 
 2084                } 
catch (Exception 
$e) {
 
 2085                    $log->debug(
"Got exception: " . 
$e->getMessage());
 
 2086                    echo json_encode(array( 
'success' => 
false, 
'message' => 
$e->getMessage()));
 
 2088                $log->debug(
"end of 'has_uploads'");
 
 2090            $log->debug(
"has no upload...");
 
 2092            $log->debug(
"calling redirect... (" . 
$_POST[
"ilfilehash"] . 
")");
 
 2093            ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 2094            $ctrl->setParameter($this, 
"mep_hash", 
$_POST[
"ilfilehash"]);
 
 2095            $ctrl->redirect($this, 
"editTitlesAndDescriptions");
 
 2098        $form->setValuesByPost();
 
 2099        $main_tpl->setContent($form->getHtml());
 
 2111        $ctrl->saveParameter($this, 
"mep_hash");
 
 2115        include_once(
"./Services/MediaObjects/classes/class.ilMediaItem.php");
 
 2118        include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
 
 2121        $tb->setFormAction(
$ctrl->getFormAction($this));
 
 2122        $tb->addFormButton(
$lng->txt(
"save"), 
"saveTitlesAndDescriptions");
 
 2123        $tb->setOpenFormTag(
true);
 
 2124        $tb->setCloseFormTag(
false);
 
 2125        $tb->setId(
"tb_top");
 
 2127        $html = $tb->getHTML();
 
 2128        foreach ($media_items as $mi) {
 
 2131            $acc->setId(
"acc_" . $mi[
"mob_id"]);
 
 2135            $acc->addItem($mob->getTitle(), $form->getHTML());
 
 2137            $html .= $acc->getHTML();
 
 2140        $html .= $tb->getHTML();
 
 2141        $tb->setOpenFormTag(
false);
 
 2142        $tb->setCloseFormTag(
true);
 
 2143        $tb->setId(
"tb_bottom");
 
 2155        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 2157        $form->setOpenTag(
false);
 
 2158        $form->setCloseTag(
false);
 
 2162        $ti->setValue($a_title);
 
 2163        $form->addItem($ti);
 
 2167        $form->addItem($ti);
 
 2184        include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
 
 2186        foreach ($media_items as $mi) {
 
 2189            $form->checkInput();
 
 2190            $title = $form->getInput(
"title_" . $mi[
"mob_id"]);
 
 2191            $desc = $form->getInput(
"description_" . $mi[
"mob_id"]);
 
 2192            if (trim($title) != 
"") {
 
 2193                $mob->setTitle($title);
 
 2195            $mob->setDescription($desc);
 
 2198        ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 2199        $ctrl->redirect($this, 
"listMedia");
 
An exception for terminatinating execution or to throw for unit testing.
error($a_errmsg)
set error message @access public
Accordion user interface class.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
Confirmation screen class.
Class ilEditClipboardGUI.
Export User Interface Class.
File System Explorer GUI class.
special template class to simplify handling of ITX/PEAR
static getLogger($a_component_id)
Get component logger.
static _checkAdministrationPermission()
Class ilMediaPoolPage GUI class.
TableGUI class for media pool page usages listing.
static lookupTitle($a_page_id)
Lookup title.
Handler class for multi srt upload in learning modules.
Upload SRT files to a set of media objects.
static getInstance()
Get instance.
static getSyntaxStylePath()
get syntax style path
static getContentStylePath($a_style_id, $add_random=true, $add_token=true)
get content style path
New implementation of ilObjectGUI.
prepareOutput($a_show_subobjects=true)
prepare output
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_node_id=null)
Check permission.
setCreationMode($a_mode=true)
if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class!...
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
getCreationMode()
get creation mode
initImportForm($a_new_type)
Init object import form.
initCreateForm($a_new_type)
Init object creation form.
static _gotoRepositoryRoot($a_raise_error=false)
Goto repository root.
getEditFormValues()
Get values for edit form.
addHeaderAction()
Add header action menu.
initEditForm()
Init object edit form.
addExternalEditFormCustom(ilPropertyFormGUI $a_form)
static initServiceSettingsForm($a_obj_id, ilPropertyFormGUI $form, $services)
Init service settings form.
static updateServiceSettingsForm($a_obj_id, ilPropertyFormGUI $form, $services)
Update service settings.
GUI class for object translation handling.
static getInstance($a_obj_id)
Get instance.
Class ilObject Basic functions for all objects.
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
getRefId()
get reference id @access public
static getUsages($a_pc_type, $a_pc_id, $a_incl_hist=true)
Get usages.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
Saves (mostly asynchronously) user properties of tables (e.g.
This class represents a text area property in a property form.
This class represents a text property in a property form.
static getImageTagByType($a_type, $a_path, $a_big=false)
Builds an html image tag TODO: function still in use, but in future use getImagePath and move HTML-Co...
static getWebspaceDir($mode="filesystem")
get webspace directory
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
static redirect($a_script)
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static virusHandling($a_file, $a_orig_name="", $a_clean=true)
scan file for viruses and clean files if possible
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static renameExecutables($a_dir)
Rename uploaded executables for security reasons.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc