1 | <?php |
||
11 | class ElasticSearchForm extends Form { |
||
12 | |||
13 | /** |
||
14 | * List of types to search for, default (blank) returns all |
||
15 | * @var string |
||
16 | */ |
||
17 | private $types = ''; |
||
|
|||
18 | |||
19 | |||
20 | /** |
||
21 | * |
||
22 | * @param Controller $controller |
||
23 | * @param string $name The name of the form (used in URL addressing) |
||
24 | * @param FieldList $fields Optional, defaults to a single field named "Search". Search logic needs to be customized |
||
25 | * if fields are added to the form. |
||
26 | * @param FieldList $actions Optional, defaults to a single field named "Go". |
||
27 | */ |
||
28 | public function __construct($controller, $name, $fields = null, $actions = null) { |
||
51 | |||
52 | |||
53 | public function enableAutocomplete() { |
||
57 | |||
58 | |||
59 | /** |
||
60 | * Optionally allow templates to override the text of the submit button, perhaps if using a icon font |
||
61 | * as per the default Simple theme |
||
62 | * |
||
63 | * @param string $newButtonText Alternative search text |
||
64 | */ |
||
65 | public function setButtonText($newButtonText) { |
||
70 | } |
||
71 |
This check marks private properties in classes that are never used. Those properties can be removed.