phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
HtmlOption.php
Go to the documentation of this file.
1 <?php
2 namespace Ajax\common\html\html5;
11  protected $value;
12  protected $selected;
13  public function __construct($identifier,$caption,$value="") {
14  parent::__construct($identifier, "option");
15  $this->_template='<option id="%identifier%" value="%value%" %selected% %properties%>%content%</option>';
16  $this->content=$caption;
17  $this->value=$value;
18  $this->selected="";
19  }
20 
21  public function select(){
22  $this->selected="selected";
23  return $this;
24  }
25 
26  public function getValue() {
27  return $this->value;
28  }
29  public function setValue($value) {
30  $this->value = $value;
31  return $this;
32  }
33 
34 }
__construct($identifier, $caption, $value="")
Definition: HtmlOption.php:13