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)
 
   65        parent::__construct($a_id, $a_id_type, $a_parent_node_id);
 
   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);
 
  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);
 
  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"]);
 
  246            case "ilobjfoldergui":
 
  250                $this->ctrl->setReturn($this, 
"listMedia");
 
  256                        $folder_gui->setFormAction(
 
  258                            $this->ctrl->getFormActionByClass(
"ilobjfoldergui")
 
  260                        $folder_gui->createObject();
 
  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();
 
  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);
 
  311            case 'ilinfoscreengui':
 
  318            case 'ilpermissiongui':
 
  322                include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
  324                $this->ctrl->forwardCommand($perm_gui);
 
  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);
 
  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);
 
  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);
 
  394            case "ilmediapoolimportgui":
 
  397                $ilTabs->activateTab(
"import");
 
  398                include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolImportGUI.php");
 
  400                $this->ctrl->forwardCommand($gui);
 
  404            case "ilmobmultisrtuploadgui":
 
  410                include_once(
"./Services/MediaObjects/classes/class.ilMobMultiSrtUploadGUI.php");
 
  411                include_once(
"./Modules/MediaPool/classes/class.ilMepMultiSrt.php");
 
  413                $this->ctrl->forwardCommand($gui);
 
  421                $cmd = $this->ctrl->getCmd(
"listMedia");
 
  435        $this->ctrl->redirectByClass(
"ilobjmediaobjectgui", 
"create");
 
  440        $forms = array(self::CFORM_NEW => $this->
initCreateForm($a_new_type),
 
  452        ilUtil::sendSuccess($this->lng->txt(
"object_added"), 
true);
 
  455        ilUtil::redirect(
"ilias.php?baseClass=ilMediaPoolPresentationGUI&ref_id=" . $newObj->
getRefId() . 
"&cmd=listMedia");
 
  463        $ni = 
new ilNumberInputGUI($this->lng->txt(
"mep_default_width"), 
"default_width");
 
  465        $ni->setSuffix(
"px");
 
  466        $ni->setMaxLength(5);
 
  471        $ni = 
new ilNumberInputGUI($this->lng->txt(
"mep_default_height"), 
"default_height");
 
  472        $ni->setSuffix(
"px");
 
  474        $ni->setMaxLength(5);
 
  476        $ni->setInfo($this->lng->txt(
"mep_default_width_height_info"));
 
  481        $pres->setTitle($this->lng->txt(
'obj_presentation'));
 
  485        $obj_service->commonSettings()->legacyForm($a_form, $this->
object)->addTileImage();
 
  489        $feat->setTitle($this->lng->txt(
'obj_features'));
 
  492        include_once 
'./Services/Container/classes/class.ilContainer.php';
 
  493        include_once 
'./Services/Object/classes/class.ilObjectServiceSettingsGUI.php';
 
  495            $this->object->getId(),
 
  517            $ilErr->raiseError($this->lng->txt(
"msg_no_perm_write"), 
$ilErr->MESSAGE);
 
  520        $ilTabs->activateTab(
"settings");
 
  536        if ($this->object->getDefaultWidth() > 0) {
 
  537            $a_values[
"default_width"] = $this->
object->getDefaultWidth();
 
  539        if ($this->object->getDefaultHeight() > 0) {
 
  540            $a_values[
"default_height"] = $this->
object->getDefaultHeight();
 
  548        $this->
object->setDefaultWidth($a_form->
getInput(
"default_width"));
 
  549        $this->
object->setDefaultHeight($a_form->
getInput(
"default_height"));
 
  553        include_once 
'./Services/Object/classes/class.ilObjectServiceSettingsGUI.php';
 
  555            $this->object->getId(),
 
  563        $obj_service->commonSettings()->legacyForm($a_form, $this->
object)->saveTileImage();
 
  578        $ilCtrl->setParameter($this, 
"mep_mode", 
"listMedia");
 
  582        $ilTabs->setTabActive(
"content");
 
  585        if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
  586            $ilToolbar->addButton(
 
  587                $lng->txt(
"mep_create_mob"),
 
  588                $ilCtrl->getLinkTarget($this, 
"createMediaObject")
 
  592            if ($mset->get(
"mep_activate_pages")) {
 
  593                $ilToolbar->addButton(
 
  594                    $lng->txt(
"mep_create_content_snippet"),
 
  595                    $ilCtrl->getLinkTarget($this, 
"createMediaPoolPage")
 
  599            $ilToolbar->addButton(
 
  600                $lng->txt(
"mep_create_folder"),
 
  601                $ilCtrl->getLinkTarget($this, 
"createFolderForm")
 
  605                $ilToolbar->addButton(
 
  606                    $lng->txt(
"mep_create_from_upload_dir"),
 
  607                    $ilCtrl->getLinkTargetByClass(
"ilfilesystemgui", 
"listFiles")
 
  611            $ilToolbar->addButton(
 
  612                $lng->txt(
"mep_bulk_upload"),
 
  613                $ilCtrl->getLinkTarget($this, 
"bulkUpload")
 
  618        include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolExplorerGUI.php");
 
  620        if (!$exp->handleCommand()) {
 
  621            $this->tpl->setLeftNavContent($exp->getHTML());
 
  626        include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolTableGUI.php");
 
  628        $tpl->setContent($mep_table_gui->getHTML());
 
  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->getStandardTemplate();
 
  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 ilTemplate(
"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);
 
  820        include_once(
"./Services/Container/classes/class.ilContainerPage.php");
 
  821        include_once(
"./Services/Container/classes/class.ilContainerPageGUI.php");
 
  823        include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
 
  826            "LOCATION_CONTENT_STYLESHEET",
 
  829        $tpl->setCurrentBlock(
"SyntaxStyle");
 
  831            "LOCATION_SYNTAX_STYLESHEET",
 
  834        $tpl->parseCurrentBlock();
 
  840        include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPageGUI.php");
 
  842        include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
 
  846        $page_gui->setTemplateOutput(
false);
 
  847        $page_gui->setHeader(
"");
 
  848        $ret = $page_gui->showPage(
true);
 
  850        $tpl->setBodyClass(
"ilMediaPoolPagePreviewBody");
 
  869        switch ($item->getType()) {
 
  900        if (!isset(
$_POST[
"id"])) {
 
  901            $ilErr->raiseError($this->lng->txt(
"no_checkbox"), 
$ilErr->MESSAGE);
 
  905        include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
 
  907        $cgui->setFormAction($this->ctrl->getFormAction($this));
 
  908        $cgui->setHeaderText($this->lng->txt(
"info_remove_sure"));
 
  909        $cgui->setCancel($this->lng->txt(
"cancel"), 
"cancelRemove");
 
  910        $cgui->setConfirm($this->lng->txt(
"confirm"), 
"remove");
 
  919                include_once(
"./Services/COPage/classes/class.ilPageContentUsage.php");
 
  921                if (count($usages) > 0) {
 
  923                    $ilCtrl->redirect($this, 
"listMedia");
 
  927                    if (count($usages) > 0) {
 
  928                        $add = 
"<div class='small'>" . 
$lng->txt(
"mep_content_snippet_used_in_older_versions") . 
"</div>";
 
  936            $cgui->addItem(
"id[]", 
$obj_id, $caption);
 
  939        $this->tpl->setContent($cgui->getHTML());
 
  953            "ileditclipboardgui",
 
  955            rawurlencode(
$ilCtrl->getLinkTarget(
 
  957                "insertFromClipboard",
 
  963        $ilCtrl->redirectByClass(
"ilEditClipboardGUI", 
"getObject");
 
  976        include_once(
"./Services/Clipboard/classes/class.ilEditClipboardGUI.php");
 
  978        $not_inserted = array();
 
  979        if (is_array($ids)) {
 
  980            foreach ($ids as $id2) {
 
  981                $id = explode(
":", $id2);
 
  985                if (
$type == 
"mob") {           
 
  986                    if (ilObjMEdiaPool::isForeignIdInTree($this->object->getId(), 
$id)) {
 
  991                        $item->setType(
"mob");
 
  992                        $item->setForeignId(
$id);
 
  995                        if ($item->getId() > 0) {
 
  996                            $this->
object->insertInTree($item->getId(), 
$_GET[
"mepitem_id"]);
 
 1000                if (
$type == 
"incl") {          
 
 1001                    include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
 
 1002                    include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolItem.php");
 
 1003                    if (ilObjMEdiaPool::isItemIdInTree($this->object->getId(), 
$id)) {
 
 1011                        $item->setType(
"pg");
 
 1014                        if ($item->getId() > 0) {
 
 1015                            $this->
object->insertInTree($item->getId(), 
$_GET[
"mepitem_id"]);
 
 1018                            include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
 
 1020                            $page->setId($item->getId());
 
 1021                            $page->setParentId($this->object->getId());
 
 1025                            $original->copy($page->getId(), $page->getParentType(), $page->getParentId(), 
true);
 
 1031        if (count($not_inserted) > 0) {
 
 1032            ilUtil::sendInfo($this->lng->txt(
"mep_not_insert_already_exist") . 
"<br>" .
 
 1033                implode($not_inserted, 
"<br>"), 
true);
 
 1035        $this->ctrl->redirect($this, 
$_GET[
"mep_mode"] ? 
$_GET[
"mep_mode"] : 
"listMedia");
 
 1044        $this->ctrl->redirect($this, 
$_GET[
"mep_mode"] ? 
$_GET[
"mep_mode"] : 
"listMedia");
 
 1050    public function remove()
 
 1057            $this->
object->deleteChild($obj_id);
 
 1060        ilUtil::sendSuccess($this->lng->txt(
"cont_obj_removed"), 
true);
 
 1061        $this->ctrl->redirect($this, 
$_GET[
"mep_mode"] ? 
$_GET[
"mep_mode"] : 
"listMedia");
 
 1075        if (!isset(
$_POST[
"id"])) {
 
 1077            $this->ctrl->redirect($this, 
$_GET[
"mep_mode"] ? 
$_GET[
"mep_mode"] : 
"listMedia");
 
 1082            if (
$type == 
"fold") {
 
 1084                $this->ctrl->redirect($this, 
$_GET[
"mep_mode"] ? 
$_GET[
"mep_mode"] : 
"listMedia");
 
 1090            if (
$type == 
"mob") {
 
 1091                $ilUser->addObjectToClipboard($fid, 
"mob", 
"");
 
 1093            if (
$type == 
"pg") {
 
 1097        ilUtil::sendSuccess($this->lng->txt(
"copied_to_clipboard"), 
true);
 
 1098        $this->ctrl->redirect($this, 
$_GET[
"mep_mode"] ? 
$_GET[
"mep_mode"] : 
"listMedia");
 
 1109        if (!$this->
getCreationMode() && $this->ctrl->getCmd() != 
"explorer") {
 
 1110            $tree = $this->
object->getTree();
 
 1112                ? 
$tree->getRootId()
 
 1113                : 
$_GET[
"mepitem_id"];
 
 1115            foreach (
$path as $node) {
 
 1116                if ($node[
"child"] == 
$tree->getRootId()) {
 
 1117                    $this->ctrl->setParameter($this, 
"mepitem_id", 
"");
 
 1118                    if ($ilAccess->checkAccess(
"read", 
"", $this->object->getRefId())) {
 
 1119                        $link = $this->ctrl->getLinkTarget($this, 
"listMedia");
 
 1120                    } elseif ($ilAccess->checkAccess(
"visible", 
"", $this->object->getRefId())) {
 
 1121                        $link = $this->ctrl->getLinkTarget($this, 
"infoScreen");
 
 1123                    $title = $this->
object->getTitle();
 
 1124                    $this->ctrl->setParameter($this, 
"mepitem_id", 
$_GET[
"mepitem_id"]);
 
 1125                    $ilLocator->addItem(
$title, $link, 
"", 
$_GET[
"ref_id"]);
 
 1146        $tpl->setContent($this->form->getHTML());
 
 1163        $tpl->setContent($this->form->getHTML());
 
 1175        $this->form->setValuesByArray(
$values);
 
 1190        if ($this->form->checkInput()) {
 
 1191            if ($this->object->createFolder(
$_POST[
"title"], (
int) 
$_GET[
"mepitem_id"])) {
 
 1192                ilUtil::sendSuccess(
$lng->txt(
"mep_folder_created"), 
true);
 
 1194            $ilCtrl->redirect($this, 
"listMedia");
 
 1197        $this->form->setValuesByPost();
 
 1198        $tpl->setContent($this->form->getHtml());
 
 1213        if ($this->form->checkInput()) {
 
 1215            $item->setTitle(
$_POST[
"title"]);
 
 1217            ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 1221                $this->object->getTree()->getParentId(
$_GET[
"mepitem_id"])
 
 1223            $ilCtrl->redirect($this, 
"listMedia");
 
 1226        $this->form->setValuesByPost();
 
 1227        $tpl->setContent($this->form->getHtml());
 
 1240        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1245        $ti->setMaxLength(128);
 
 1246        $ti->setRequired(
true);
 
 1247        $this->form->addItem($ti);
 
 1250        if ($a_mode == 
"create") {
 
 1251            $this->form->addCommandButton(
"saveFolder", 
$lng->txt(
"save"));
 
 1252            $this->form->addCommandButton(
"cancelSave", 
$lng->txt(
"cancel"));
 
 1253            $this->form->setTitle(
$lng->txt(
"mep_new_folder"));
 
 1255            $this->form->addCommandButton(
"updateFolder", 
$lng->txt(
"save"));
 
 1256            $this->form->addCommandButton(
"cancelFolderUpdate", 
$lng->txt(
"cancel"));
 
 1257            $this->form->setTitle(
$lng->txt(
"mep_edit_folder"));
 
 1260        $this->form->setFormAction(
$ilCtrl->getFormAction($this));
 
 1272            $this->object->getTree()->getParentId(
$_GET[
"mepitem_id"])
 
 1274        $ilCtrl->redirect($this, 
"listMedia");
 
 1283        $ilCtrl->redirect($this, 
"listMedia");
 
 1300        $tpl->setContent($this->form->getHTML());
 
 1316        $ilTabs->clearTargets();
 
 1318        include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPageGUI.php");
 
 1320        $mep_page_gui->getTabs();
 
 1326        $tpl->setContent($this->form->getHTML());
 
 1341        if ($this->form->checkInput()) {
 
 1343            include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolItem.php");
 
 1345            $item->setTitle(
$_POST[
"title"]);
 
 1346            $item->setType(
"pg");
 
 1349            if ($item->getId() > 0) {
 
 1351                $tree = $this->
object->getTree();
 
 1352                $parent = 
$_GET[
"mepitem_id"] > 0
 
 1353                    ? 
$_GET[
"mepitem_id"]
 
 1354                    : 
$tree->getRootId();
 
 1355                $this->
object->insertInTree($item->getId(), $parent);
 
 1358                include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
 
 1360                $page->setId($item->getId());
 
 1361                $page->setParentId($this->object->getId());
 
 1364                $ilCtrl->setParameterByClass(
"ilmediapoolpagegui", 
"mepitem_id", $item->getId());
 
 1365                $ilCtrl->redirectByClass(
"ilmediapoolpagegui", 
"edit");
 
 1367            $ilCtrl->redirect($this, 
"listMedia");
 
 1370        $this->form->setValuesByPost();
 
 1371        $tpl->setContent($this->form->getHtml());
 
 1386        if ($this->form->checkInput()) {
 
 1388            $item->setTitle(
$_POST[
"title"]);
 
 1390            ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 1391            $ilCtrl->redirect($this, 
"editMediaPoolPage");
 
 1394        $this->form->setValuesByPost();
 
 1395        $tpl->setContent($this->form->getHtml());
 
 1407        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1412        $ti->setMaxLength(128);
 
 1413        $ti->setRequired(
true);
 
 1414        $this->form->addItem($ti);
 
 1417        if ($a_mode == 
"create") {
 
 1418            $this->form->addCommandButton(
"saveMediaPoolPage", 
$lng->txt(
"save"));
 
 1419            $this->form->addCommandButton(
"cancelSave", 
$lng->txt(
"cancel"));
 
 1420            $this->form->setTitle(
$lng->txt(
"mep_new_content_snippet"));
 
 1422            $this->form->addCommandButton(
"updateMediaPoolPage", 
$lng->txt(
"save"));
 
 1423            $this->form->setTitle(
$lng->txt(
"mep_edit_content_snippet"));
 
 1426        $this->form->setFormAction(
$ilCtrl->getFormAction($this));
 
 1436        include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolItem.php");
 
 1439        $this->form->setValuesByArray(
$values);
 
 1456            $ilCtrl->getLinkTarget($this, 
"showMediaPoolPageUsages"),
 
 1457            array(
"showMediaPoolPageUsages", 
"showAllMediaPoolPageUsages"),
 
 1462            $ilCtrl->getLinkTarget($this, 
"editMediaPoolPage"),
 
 1463            "editMediaPoolPage",
 
 1466        $ilCtrl->setParameter($this, 
"mepitem_id", $this->object->getPoolTree()->getParentId(
$_GET[
"mepitem_id"]));
 
 1467        $ilTabs->setBackTarget(
$lng->txt(
"mep_folder"), 
$ilCtrl->getLinkTarget($this, 
"listMedia"));
 
 1468        $ilCtrl->setParameter($this, 
"mepitem_id", 
$_GET[
"mepitem_id"]);
 
 1492        $ilTabs->clearTargets();
 
 1496            $lng->txt(
"cont_current_usages"),
 
 1497            $ilCtrl->getLinkTarget($this, 
"showMediaPoolPageUsages")
 
 1502            $lng->txt(
"cont_all_usages"),
 
 1503            $ilCtrl->getLinkTarget($this, 
"showAllMediaPoolPageUsages")
 
 1507            $ilTabs->activateSubTab(
"all_usages");
 
 1508            $cmd = 
"showAllMediaPoolPageUsages";
 
 1510            $ilTabs->activateSubTab(
"current_usages");
 
 1511            $cmd = 
"showMediaPoolPageUsages";
 
 1515        include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPageGUI.php");
 
 1517        $mep_page_gui->getTabs();
 
 1521        include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
 
 1524        include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPageUsagesTableGUI.php");
 
 1546        $ilTabs->addSubTab(
"content", $this->lng->txt(
"objs_fold"), $this->ctrl->getLinkTarget($this, 
""));
 
 1548        $ilCtrl->setParameter($this, 
"mepitem_id", 
"");
 
 1549        $ilTabs->addSubTab(
"mep_all_mobs", $this->lng->txt(
"mep_all_mobs"), $this->ctrl->getLinkTarget($this, 
"allMedia"));
 
 1550        $ilCtrl->setParameter($this, 
"mepitem_id", 
$_GET[
"mepitem_id"]);
 
 1552        if ($ilAccess->checkAccess(
'write', 
'', $this->ref_id)) {
 
 1555                $this->lng->txt(
"mep_media_subtitles"),
 
 1556                $ilCtrl->getLinkTargetByClass(
"ilmobmultisrtuploadgui", 
"")
 
 1560        $ilTabs->activateSubTab($a_active);
 
 1574        $ilHelp->setScreenIdComponent(
"mep");
 
 1576        if ($ilAccess->checkAccess(
'read', 
'', $this->ref_id) ||
 
 1577            $ilAccess->checkAccess(
'write', 
'', $this->ref_id)) {
 
 1578            $ilTabs->addTab(
"content", $this->lng->txt(
"mep_content"), $this->ctrl->getLinkTarget($this, 
""));
 
 1582        if ($ilAccess->checkAccess(
'visible', 
'', $this->ref_id) ||
 
 1583            $ilAccess->checkAccess(
'read', 
'', $this->ref_id) ||
 
 1584            $ilAccess->checkAccess(
'write', 
'', $this->ref_id)) {
 
 1585            $force_active = ($this->ctrl->getNextClass() == 
"ilinfoscreengui" 
 1586                || strtolower(
$_GET[
"cmdClass"]) == 
"ilnotegui")
 
 1591                $this->ctrl->getLinkTargetByClass(
 
 1592                    array(
"ilobjmediapoolgui", 
"ilinfoscreengui"),
 
 1595                array(
"showSummary", 
"infoScreen"),
 
 1602        if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
 1605                $this->ctrl->getLinkTarget($this, 
"edit"),
 
 1607                array(
"", 
"ilobjmediapoolgui")
 
 1611        if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
 1614                $this->ctrl->getLinkTarget($this, 
"openClipboard"),
 
 1616                "ileditclipboardgui" 
 1621        if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
 1623            include_once 
"Services/Object/classes/class.ilObjectMetaDataGUI.php";
 
 1625            $mdtab = $mdgui->getTab();
 
 1631                    "ilobjectmetadatagui" 
 1636        if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
 1639                $this->ctrl->getLinkTargetByClass(
"ilexportgui", 
""),
 
 1646                $this->ctrl->getLinkTargetByClass(
"ilmediapoolimportgui", 
""),
 
 1648                "ilmediapoolimportgui" 
 1652        if ($ilAccess->checkAccess(
"edit_permission", 
"", $this->object->getRefId())) {
 
 1655                $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'), 
"perm"),
 
 1656                array(
"perm",
"info",
"owner"),
 
 1674        if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
 1677                $lng->txt(
"settings"),
 
 1678                $this->ctrl->getLinkTarget($this, 
"edit")
 
 1682            if ($mset->get(
"mep_activate_pages")) {
 
 1683                $ilTabs->addSubTabTarget(
 
 1684                    "obj_multilinguality",
 
 1685                    $this->ctrl->getLinkTargetByClass(
"ilobjecttranslationgui", 
"")
 
 1690        $ilTabs->setSubTabActive($a_active);
 
 1701        $ilAccess = 
$DIC->access();
 
 1705        $targets = explode(
'_', $a_target);
 
 1706        if (count((array) $targets) > 1) {
 
 1708            $subitem_id = $targets[1];
 
 1713        if ($ilAccess->checkAccess(
"read", 
"", 
$ref_id)) {
 
 1714            $_GET[
"baseClass"] = 
"ilMediaPoolPresentationGUI";
 
 1716            $_GET[
'mepitem_id'] = $subitem_id;
 
 1717            include(
"ilias.php");
 
 1719        } elseif ($ilAccess->checkAccess(
"visible", 
"", 
$ref_id)) {
 
 1720            $_GET[
"baseClass"] = 
"ilMediaPoolPresentationGUI";
 
 1722            $_GET[
"cmd"] = 
"infoScreen";
 
 1723            include(
"ilias.php");
 
 1725        } elseif ($ilAccess->checkAccess(
"read", 
"", ROOT_FOLDER_ID)) {
 
 1727                $lng->txt(
"msg_no_perm_read_item"),
 
 1743        $this->ctrl->setCmd(
"showSummary");
 
 1744        $this->ctrl->setCmdClass(
"ilinfoscreengui");
 
 1753        $this->tabs->activateTab(
"info_short");
 
 1757        if (!$ilAccess->checkAccess(
"visible", 
"", $this->ref_id) &&
 
 1758            !$ilAccess->checkAccess(
"read", 
"", $this->ref_id) &&
 
 1759            !$ilAccess->checkAccess(
"write", 
"", $this->ref_id)) {
 
 1760            $ilErr->raiseError($this->lng->txt(
"msg_no_perm_read"), 
$ilErr->MESSAGE);
 
 1763        if ($this->ctrl->getCmd() == 
"infoScreen") {
 
 1764            $this->ctrl->setCmd(
"showSummary");
 
 1765            $this->ctrl->setCmdClass(
"ilinfoscreengui");
 
 1768        include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
 
 1771        $info->enablePrivateNotes();
 
 1775        $info->addMetaDataSections($this->object->getId(), 0, $this->object->getType());
 
 1778        $this->ctrl->forwardCommand(
$info);
 
 1798            $a_files = 
$_POST[
"file"];
 
 1801        $ilTabs->clearTargets();
 
 1802        $ilTabs->setBackTarget(
 
 1804            $ilCtrl->getLinkTarget($this, 
"listMedia")
 
 1812            include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
 
 1814                "rename" => 
$lng->txt(
"mep_up_dir_move"),
 
 1815                "copy" => 
$lng->txt(
"mep_up_dir_copy"),
 
 1819            $ilToolbar->addInputItem(
$si);
 
 1820            $ilToolbar->setCloseFormTag(
false);
 
 1821            $ilToolbar->setFormAction(
$ilCtrl->getFormAction($this));
 
 1822            $ilToolbar->setFormName(
"mep_up_form");
 
 1824            include_once(
"./Modules/MediaPool/classes/class.ilUploadDirFilesTableGUI.php");
 
 1827                "selectUploadDirFiles",
 
 1830            $tab->setFormName(
"mep_up_form");
 
 1843        $upload_dir = trim($mset->get(
"upload_dir"));
 
 1845        include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
 
 1849                $f = str_replace(
"..", 
"", 
$f);
 
 1850                $fullpath = $upload_dir . 
"/" . 
$f;
 
 1852                $mob->setTitle(basename($fullpath));
 
 1853                $mob->setDescription(
"");
 
 1858                $mob->createDirectory();
 
 1862                $mob->addMediaItem($media_item);
 
 1863                $media_item->setPurpose(
"Standard");
 
 1865                $file = $mob_dir . 
"/" . basename($fullpath);
 
 1871                    ilUtil::redirect(
"ilias.php?baseClass=ilMediaPoolPresentationGUI&cmd=listMedia&ref_id=" .
 
 1872                        $_GET[
"ref_id"] . 
"&mepitem_id=" . 
$_GET[
"mepitem_id"]);
 
 1875                switch (
$_POST[
"action"]) {
 
 1877                        rename($fullpath, $file);
 
 1881                        copy($fullpath, $file);
 
 1890                $media_item->setFormat(
$format);
 
 1892                $media_item->setLocationType(
"LocalFile");
 
 1894                $mob->setDescription(
$format);
 
 1901                    $media_item->getLocation(),
 
 1907                $media_item->setWidth($wh[
"width"]);
 
 1908                $media_item->setHeight($wh[
"height"]);
 
 1909                if ($wh[
"info"] != 
"") {
 
 1913                $media_item->setHAlign(
"Left");
 
 1920                $mep_item->setTitle($mob->getTitle());
 
 1921                $mep_item->setType(
"mob");
 
 1922                $mep_item->setForeignId($mob->getId());
 
 1923                $mep_item->create();
 
 1925                $tree = $this->
object->getTree();
 
 1926                $parent = (
$_GET[
"mepitem_id"] == 
"")
 
 1927                    ? 
$tree->getRootId()
 
 1928                    : 
$_GET[
"mepitem_id"];
 
 1929                $tree->insertNode($mep_item->getId(), $parent);
 
 1932        ilUtil::redirect(
"ilias.php?baseClass=ilMediaPoolPresentationGUI&cmd=listMedia&ref_id=" .
 
 1933            $_GET[
"ref_id"] . 
"&mepitem_id=" . 
$_GET[
"mepitem_id"]);
 
 1947        require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
 
 1950        $tpl->addJavaScript(
"./Modules/MediaPool/js/ilMediaPool.js");
 
 1952        $ilCtrl->setParameterByClass(
"ilobjmediapoolgui", 
"mepitem_id", 
"");
 
 1953        $ilCtrl->setParameterByClass(
"ilobjmediapoolgui", 
"ref_id", $a_mpool_ref_id);
 
 1954        $tpl->addOnloadCode(
"il.MediaPool.setPreviewUrl('" . 
$ilCtrl->getLinkTargetByClass(array(
"ilmediapoolpresentationgui", 
"ilobjmediapoolgui"), 
"showPreview", 
"", 
false, 
false) . 
"');");
 
 1955        $ilCtrl->setParameterByClass(
"ilobjmediapoolgui", 
"mepitem_id", 
$_GET[
"mepitem_id"]);
 
 1956        $ilCtrl->setParameterByClass(
"ilobjmediapoolgui", 
"ref_id", 
$_GET[
"red_id"]);
 
 1958        include_once(
"./Services/UIComponent/Modal/classes/class.ilModalGUI.php");
 
 1960        $modal->setHeading(
$lng->txt(
"preview"));
 
 1961        $modal->setId(
"ilMepPreview");
 
 1963        $modal->setBody(
"<iframe id='ilMepPreviewContent'></iframe>");
 
 1965        return $modal->getHTML();
 
 1975        if ($ot->getContentActivated()) {
 
 1980        $this->
object->exportXML($opt);
 
 2008        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 2011        $form->setFormAction(
$ctrl->getFormAction($this));
 
 2012        $form->setPreventDoubleSubmission(
false);
 
 2016            $lng->txt(
"mep_media_files"),
 
 2019        $item->setUploadUrl(
$ctrl->getLinkTarget($this, 
"performBulkUpload", 
"", 
true, 
true));
 
 2020        $item->setMaxFiles(20);
 
 2021        $form->addItem($item);
 
 2023        $form->addCommandButton(
"performBulkUpload", 
$lng->txt(
"upload"));
 
 2025        $form->setTitle(
$lng->txt(
"mep_bulk_upload"));
 
 2044        if (
$form->checkInput()) {
 
 2047            $log->debug(
"checking for uploads...");
 
 2049                $log->debug(
"has upload...");
 
 2052                    $log->debug(
"nr of results: " . count(
$upload->getResults()));
 
 2058                        $mob->setDescription(
"");
 
 2061                        $mob->createDirectory();
 
 2063                        $mob->addMediaItem($media_item);
 
 2064                        $media_item->setPurpose(
"Standard");
 
 2068                        $file = $mob_dir . 
"/" . $file_name;
 
 2079                        $mep_item->setTitle(
$title);
 
 2080                        $mep_item->setType(
"mob");
 
 2081                        $mep_item->setForeignId($mob->getId());
 
 2082                        $mep_item->create();
 
 2084                        $tree = $this->
object->getTree();
 
 2085                        $parent = (
$_GET[
"mepitem_id"] == 
"")
 
 2086                            ? 
$tree->getRootId()
 
 2087                            : 
$_GET[
"mepitem_id"];
 
 2088                        $tree->insertNode($mep_item->getId(), $parent);
 
 2095                        $media_item->setFormat(
$format);
 
 2097                        $media_item->setLocationType(
"LocalFile");
 
 2100                        $mep_item_ids[] = $mob->getId();
 
 2102                } 
catch (Exception $e) {
 
 2103                    $log->debug(
"Got exception: " . $e->getMessage());
 
 2104                    echo json_encode(array( 
'success' => 
false, 
'message' => $e->getMessage()));
 
 2106                $log->debug(
"end of 'has_uploads'");
 
 2108            $log->debug(
"has no upload...");
 
 2110            $log->debug(
"calling redirect... (" . 
$_POST[
"ilfilehash"] . 
")");
 
 2111            ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 2112            $ctrl->setParameter($this, 
"mep_hash", 
$_POST[
"ilfilehash"]);
 
 2113            $ctrl->redirect($this, 
"editTitlesAndDescriptions");
 
 2116        $form->setValuesByPost();
 
 2129        $ctrl->saveParameter($this, 
"mep_hash");
 
 2133        include_once(
"./Services/MediaObjects/classes/class.ilMediaItem.php");
 
 2136        include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
 
 2139        $tb->setFormAction(
$ctrl->getFormAction($this));
 
 2140        $tb->addFormButton(
$lng->txt(
"save"), 
"saveTitlesAndDescriptions");
 
 2141        $tb->setOpenFormTag(
true);
 
 2142        $tb->setCloseFormTag(
false);
 
 2143        $tb->setId(
"tb_top");
 
 2145        $html = $tb->getHTML();
 
 2146        foreach ($media_items as $mi) {
 
 2149            $acc->setId(
"acc_" . $mi[
"mob_id"]);
 
 2153            $acc->addItem($mob->getTitle(), 
$form->getHTML());
 
 2155            $html .= $acc->getHTML();
 
 2158        $html .= $tb->getHTML();
 
 2159        $tb->setOpenFormTag(
false);
 
 2160        $tb->setCloseFormTag(
true);
 
 2161        $tb->setId(
"tb_bottom");
 
 2173        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 2175        $form->setOpenTag(
false);
 
 2176        $form->setCloseTag(
false);
 
 2180        $ti->setValue($a_title);
 
 2181        $form->addItem($ti);
 
 2185        $form->addItem($ti);
 
 2202        include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
 
 2204        foreach ($media_items as $mi) {
 
 2207            $form->checkInput();
 
 2208            $title = 
$form->getInput(
"title_" . $mi[
"mob_id"]);
 
 2209            $desc = 
$form->getInput(
"description_" . $mi[
"mob_id"]);
 
 2210            if (trim(
$title) != 
"") {
 
 2213            $mob->setDescription($desc);
 
 2216        ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 2217        $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.
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)
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.
special template class to simplify handling of ITX/PEAR
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.
if(!array_key_exists('StateId', $_REQUEST)) $id
if(empty($password)) $table
if(isset($_POST['submit'])) $form