searchString = strtolower(trim(strip_tags($searchString))); } /** * Returns the string to be searched. */ public function getSearchString(): string { return $this->searchString; } /** * Add an array of results from a search query to be listed in right side panel * Each result should be the ENTIRE html to be rendered. * * @param string $header String name for section header * @param array $results Array of HTML output that will be wrapped in
  • elements */ public function addResults($header, array $results): void { $header = $this->translator->trans($header); $this->results[$header] = $results; } /** * Returns the results. * * @return array */ public function getResults() { uksort($this->results, 'strnatcmp'); return $this->results; } }