public function processData(\IRequestObject $requestObject) { $this->params = $requestObject->getParams(); if ($this->params["job"] == null && $this->params["activity"] == null && $this->params["facet"] == null && $this->params["index"] == null) { $this->artefacts = \Artefacts::getAllArtefacts(); } elseif ($this->params["portfolioId"] != null) { $portfolio = \PortfolioModel::getById($this->params["portfolioId"]); $this->artefacts = $portfolio->getArtefacts(); } else { $this->artefacts = \Artefacts::getArtefactsByCompetence($this->params["job"], $this->params["facet"], $this->params["activity"], $this->params["index"]); } }