SilverStripe\Bambusa\Controllers\SearchController
Synopsis
class SearchController
extends PageController
{
- // members
- private static array $macrons = ;
- // methods
- public ArrayData LocaleInformation()
- public void index()
- public void Link()
- private static string sanitiseQuery()
- // Inherited methods from PageController
- protected void init()
- public SearchForm|null SearchForm()
- public SearchForm HeaderSearchForm()
Hierarchy
Extends
Members
private
- $macrons
—
array
Map Macrons to non-macrons, otherwise they're stripped out of the query and replaced by a space
Methods
private
- sanitiseQuery() — http://e-mats.org/2010/01/escaping-characters-in-a-solr-query-solr-url/
public
- Link()
- LocaleInformation() — Because this is a standalone controller and not affected by the fluent routing, we have to ensure that the language selector generates ?l=$locale links. All other links on the page are rendered with the sub URL, so this parameter doesn't get forwarded to subsequent page views.
- index()