public function __construct($identifier) { parent::__construct($identifier, "input"); $this->setProperty("name", $identifier); $this->setProperty("class", "form-control"); $this->setProperty("role", "input"); $this->setProperty("value", ""); $this->setProperty("type", "text"); }
public function run(JsUtils $js) { parent::run($js); if ($this->content instanceof HtmlDoubleElement) { $this->content->run($js); } else { if (is_array($this->content)) { foreach ($this->content as $itemContent) { if ($itemContent instanceof HtmlDoubleElement) { $itemContent->run($js); } } } } }
public function __construct($identifier) { parent::__construct($identifier, "span"); $this->_template = '<span class="glyphicon %glyphicon%" aria-hidden="true"></span>'; }
public function __construct($identifier) { parent::__construct($identifier, "img"); }