/** * Load table property * * @param string $type * @return mixed */ function loadProperty($type) { global $ilUser; if (is_object($ilUser) && $this->getId() != "" && $ilUser->getId() != ANONYMOUS_USER_ID) { include_once "./Services/Table/classes/class.ilTablePropertiesStorage.php"; $tab_prop = new ilTablePropertiesStorage(); return $tab_prop->getProperty($this->getId(), $ilUser->getId(), $type); } }
/** * @param string $type * * @return mixed */ public function loadProperty($type) { global $ilUser; if ($ilUser instanceof ilObjUser and $this->getId()) { $tab_prop = new ilTablePropertiesStorage(); return $tab_prop->getProperty($this->getId(), $ilUser->getId(), $type); } }
/** * list all objects */ function allMedia() { global $tree, $ilAccess, $tpl, $ilTabs, $ilCtrl, $ilUser; $ilCtrl->setParameter($this, "mep_mode", "allMedia"); if (!$ilAccess->checkAccess("read", "", $this->object->getRefId())) { $this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE); } $ilTabs->setTabActive("mep_all_mobs"); include_once "./Modules/MediaPool/classes/class.ilMediaPoolTableGUI.php"; $mep_table_gui = new ilMediaPoolTableGUI($this, "allMedia", $this->object, "mepitem_id", ilMediaPoolTableGUI::IL_MEP_EDIT, true); if (isset($_GET['force_filter']) and $_GET['force_filter']) { $_POST['title'] = ilMediaPoolItem::lookupTitle((int) $_GET['force_filter']); include_once "./Services/Table/classes/class.ilTablePropertiesStorage.php"; $tprop = new ilTablePropertiesStorage(); $tprop->storeProperty($mep_table_gui->getId(), $ilUser->getId(), 'filter', 1); $mep_table_gui->resetFilter(); $mep_table_gui->resetOffset(); $mep_table_gui->writeFilterToSession(); // Read again $mep_table_gui = new ilMediaPoolTableGUI($this, "allMedia", $this->object, "mepitem_id", ilMediaPoolTableGUI::IL_MEP_EDIT, true); } $tpl->setContent($mep_table_gui->getHTML()); // $this->tpl->show(); }