コード例 #1
0
ファイル: HtmlOption.php プロジェクト: jcheron/phalcon-jquery
 public function __construct($identifier, $caption, $value = "")
 {
     parent::__construct($identifier, "option");
     $this->_template = '<option id="%identifier%" value="%value%" %selected% %properties%>%content%</option>';
     $this->content = $caption;
     $this->value = $value;
     $this->selected = "";
 }
コード例 #2
0
 public function __construct($identifier, $caption, $default = NULL)
 {
     parent::__construct($identifier, "select");
     $this->setProperty("name", $identifier);
     $this->setProperty("class", "form-control");
     $this->setProperty("value", "");
     $this->default = $default;
     $this->options = array();
 }
コード例 #3
0
 public function __construct($identifier, $tagName = "p", $baseClass = "ui", $content = NULL)
 {
     parent::__construct($identifier, $tagName);
     $this->_baseClass = $baseClass;
     $this->setClass($baseClass);
     if (isset($content)) {
         $this->content = $content;
     }
 }
コード例 #4
0
 public function __construct($identifier, $value = NULL, $placeholder = NULL, $rows = NULL)
 {
     parent::__construct($identifier, "textarea");
     $this->setValue($value);
     $this->setPlaceholder($placeholder);
     if (isset($rows)) {
         $this->setRows($rows);
     }
 }
コード例 #5
0
 public function __construct($identifier, $tagName = "div")
 {
     parent::__construct($identifier, $tagName);
     $this->content = array();
 }