/** * Starts a search request * @param boolean $bAjax Ajax request or not * @return object ViewBaseElement */ public function getResults($bAjax) { if ($bAjax === true) { $this->oSearchRequest->init(); $this->oSearchOptions->readInSearchRequest(); $this->oSearchUriBuilder->init(); } $oView = new ViewBaseElement(); $oView->setId('bs-extendedsearch-specialpage-body'); $aMonitor = array(); try { $oResultView = $this->search($aMonitor); } catch (BsException $e) { if ($e->getMessage() == 'redirect') { return; } throw $e; } $vNoOfResultsFound = new ViewNoOfResultsFound(); $vNoOfResultsFound->setOptions($aMonitor); $oView->addItem($vNoOfResultsFound); $oView->addItem($oResultView); return $oView; }