public function executeCommand() { global $ilCtrl; $this->determineSelectedFilters(); if (!$ilCtrl->getNextClass($this)) { $to_hide = false; switch ($ilCtrl->getCmd()) { case "applyFilter": $this->resetOffset(); $this->writeFilterToSession(); break; case "resetFilter": $this->resetOffset(); $this->resetFilter(); break; case "hideSelected": $to_hide = $_POST["item_id"]; break; case "hide": $to_hide = array((int) $_GET["hide"]); break; // page selector // page selector default: $this->determineOffsetAndOrder(); $this->storeNavParameter(); break; } if ($to_hide) { $obj = $this->getFilterItemByPostVar("hide"); $value = array_unique(array_merge((array) $obj->getValue(), $to_hide)); $obj->setValue($value); $obj->writeToSession(); } if (isset($_REQUEST["tbltplcrt"])) { $ilCtrl->setParameter($this->parent_obj, "tbltplcrt", $_REQUEST["tbltplcrt"]); } if (isset($_REQUEST["tbltpldel"])) { $ilCtrl->setParameter($this->parent_obj, "tbltpldel", $_REQUEST["tbltpldel"]); } $ilCtrl->redirect($this->parent_obj, $this->parent_cmd); } else { // e.g. repository selector return parent::executeCommand(); } }
public function executeCommand() { $this->handleParameters(); $this->handleTabs(); switch ($this->ctrl->getNextClass($this)) { case strtolower(__CLASS__): case '': $cmd = $this->ctrl->getCmd() . 'Cmd'; return $this->{$cmd}(); default: $this->ctrl->setReturn($this, self::CMD_BROWSE_QUESTIONS); return parent::executeCommand(); } }