/** * Handle read/write current detail level. */ function handleDetailLevel() { global $ilUser, $ilCtrl; // set/get detail level if ($this->detail_max > $this->detail_min) { include_once "Services/Block/classes/class.ilBlockSetting.php"; if (isset($_GET[$this->getDetailParameter()])) { ilBlockSetting::_writeDetailLevel($this->getBlockType(), $_GET[$this->getDetailParameter()], $ilUser->getId(), $this->block_id); $this->setCurrentDetailLevel($_GET[$this->getDetailParameter()]); if ((int) $_GET[$this->getDetailParameter()] == 0) { $ilCtrl->redirectByClass("ilcolumngui", ""); } } else { $this->setCurrentDetailLevel(ilBlockSetting::_lookupDetailLevel($this->getBlockType(), $ilUser->getId(), $this->block_id)); } } }
/** * Activate hidden block */ function activateBlock() { global $ilUser, $ilCtrl; if ($_GET["block"] != "") { $block = explode("_", $_GET["block"]); include_once "Services/Block/classes/class.ilBlockSetting.php"; ilBlockSetting::_writeDetailLevel($block[0], 2, $ilUser->getId(), $block[1]); } $ilCtrl->returnToParent($this); }