phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Search.php
Go to the documentation of this file.
1 <?php
2 
4 
5 use Ajax\JsUtils;
6 
8 
9  public function __construct(JsUtils $js) {
10  parent::__construct($js);
11  $this->uiName="search";
12  }
13 
14  public function setSource($value) {
15  $this->params["source"]=$value;
16  return $this;
17  }
18 
19  public function setType($type) {
20  $this->params["type"]=$type;
21  return $this;
22  }
23 
24  public function setSearchFields($fields) {
25  $this->params["searchFields"]=$fields;
26  return $this;
27  }
28 
29  public function setApiSettings($value) {
30  $this->params["apiSettings"]=$value;
31  return $this;
32  }
33 
34  public function setOnSelect($jsCode) {
35  $this->params["onSelect"]=$jsCode;
36  return $this;
37  }
38 }
JQuery PHP library.
Definition: JsUtils.php:23