public function OnLoadPageData() { if ($this->query instanceof SearchQuery) { $index = new MySqlSearchProvider($this->GetDataConnection()); $this->results = $index->Search($this->query); $this->paging->SetTotalResults($index->TotalResults()); } }