HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
TbInputSearch.php
Go to the documentation of this file.
1 <?php
10 Yii::import('booster.widgets.input.TbInputInline');
11 
21 {
26  protected function searchField()
27  {
28  if (isset($this->htmlOptions['class'])) {
29  $this->htmlOptions['class'] .= ' search-query';
30  } else {
31  $this->htmlOptions['class'] = 'search-query';
32  }
33 
34  $this->setPlaceholder();
35  echo $this->getPrepend();
36  echo $this->form->textField($this->model, $this->attribute, $this->htmlOptions);
37  echo $this->getAppend();
38  echo $this->getError() . $this->getHint();
39  }
40 }