private function getMashup() { $request = $this->getRequest()->getQuery(); $key = @$request[ApiController::KEY_PARAM]; // disable templating etc $this->_helper->viewRenderer->setNoRender(); $this->_helper->layout->disableLayout(); // check if a access right exists $access = new Model_Access(); $access->findByKey($key) or $this->sendError("Failed to find a accessible Mashup for key {$key}"); $m = $this->getLA()->loadMashup($access->getMashup()) or $this->sendError("Failed to load mashup " . $access->getMashup()); return $m; }