SilverStripe\FullTextSearch\Solr\Forms\SearchForm::__construct
Signature
public function __construct([RequestHandler
$controller = NULL,
[string
$name = 'SearchForm',
[FieldList
$fields = NULL,
[FieldList
$actions = NULL]]]] )
Parameters
$controller
— SilverStripe\Control\RequestHandler
$name
— string- The name of the form (used in URL addressing)
$fields
— SilverStripe\Forms\FieldList- Optional, defaults to a single field named "Search". Search logic needs to be customized
if fields are added to the form. $actions
— SilverStripe\Forms\FieldList- Optional, defaults to a single field named "Go".