public function __construct($identifier) { parent::__construct($identifier, "form"); $this->_template = '<form id="%identifier%" name="%identifier%" %properties%>%content%</form>'; $this->futureElements = array(); $this->formGroups = array(); }
public function __construct($identifier, $size = CssSize::SIZE_MD, $width = 1) { parent::__construct($identifier, "div"); $this->positions = array(); $this->offsets = array(); $this->addPosition($size, $width); }
public function __construct($identifier, $caption, $style = "label-default") { parent::__construct($identifier, "span"); $this->content = $caption; $this->setProperty("class", "label"); $this->setStyle($style); }
public function __construct($identifier, $numRows = 1, $numCols = NULL) { parent::__construct($identifier, "div"); $this->setProperty("class", "container-fluid"); $this->rows = array(); $this->setNumRows($numRows, $numCols); }
public function __construct($identifier, $tagName = "div") { parent::__construct($identifier, $tagName); $this->setProperty("class", "tab-content"); $this->content = array(); // HtmlTabContentItem }
public function __construct($identifier, $tagName = "ul") { parent::__construct($identifier, $tagName); $this->content = array(); $this->_template = '<%tagName% %properties%>%content%</%tagName%>'; $this->setProperty("class", "list-group"); }
public function __construct($identifier, $tagName = "div") { parent::__construct($identifier, $tagName); $this->setClass("panel-group"); $this->setRole("tablist"); $this->setProperty("aria-multiselectable", "true"); $this->content = array(); }
public function __construct($identifier, $caption = "", $href = "#") { parent::__construct($identifier, "li"); $this->_template = '<%tagName% id="%identifier%" %properties%>%content%</%tagName%>'; $this->content = new HtmlLink("link-" . $identifier); $this->content->setHref($href); $this->content->setContent($caption); $this->setProperty("role", "presentation"); }
public function __construct($identifier, $style = "info", $value = 0, $max = 100, $min = 0) { parent::__construct($identifier); $this->_template = (include 'templates/tplProgressbar.php'); $this->value = $value; $this->min = $min; $this->max = $max; $this->setStyle($style); }
/** * * @param string $identifier the id */ public function __construct($identifier) { parent::__construct($identifier); $this->class = ""; $this->itemClass = ""; $this->content = ""; $this->href = "#"; $this->role = "menuitem"; $this->target = "_self"; $this->_template = '<li id="%identifier%" class="%class%" role="%role%"><a id="a-%identifier%" role="%itemRole%" class="%itemClass%" tabindex="-1" href="%href%" target="%target%">%content%</a></li>'; }
public function __construct($identifier, $message = NULL, $cssStyle = "alert-warning") { parent::__construct($identifier, "div"); $this->_template = '<div id="%identifier%" %properties%>%button%%content%</div>'; $this->setClass("alert"); $this->setRole("alert"); $this->setStyle($cssStyle); if ($message != NULL) { $this->content = $message; } }
/** * Constructs an HTML Bootstrap button * @param string $identifier HTML id * @param string $value value of the Button * @param string $cssStyle btn-default, btn-primary... * @param string $onClick JS Code for click event */ public function __construct($identifier, $value = "", $cssStyle = null, $onClick = null) { parent::__construct($identifier, "button"); $this->setProperty("class", "btn btn-default"); $this->setProperty("role", "button"); $this->content = $value; if (isset($cssStyle)) { $this->setStyle($cssStyle); } if (isset($onClick)) { $this->onClick($onClick); } }
public function __construct($identifier, $elements = array(), $cssStyle = NULL, $size = NULL, $tagName = "div") { parent::__construct($identifier, $tagName); $this->_template = "<%tagName% id='%identifier%' %properties%>%elements%</%tagName%>"; $this->setProperty("class", "btn-group"); $this->setRole("group"); $this->addElements($elements); if (isset($cssStyle)) { $this->setStyle($cssStyle); } if (isset($size)) { $this->setSize($size); } }
public function __construct($identifier, $numCols = NULL) { parent::__construct($identifier, "div"); $this->setProperty("class", "row"); $this->cols = array(); if (isset($numCols)) { $numCols = min(12, $numCols); $numCols = max(1, $numCols); $width = 12 / $numCols; for ($i = 0; $i < $numCols; $i++) { $this->addCol(CssSize::SIZE_MD, $width); } } }
public function __construct($identifier, $content = NULL, $header = NULL, $footer = NULL) { parent::__construct($identifier, "div"); $this->_template = (include 'templates/tplPanel.php'); $this->setProperty("class", "panel panel-default"); $this->_collapsable = false; $this->_showOnStartup = false; if ($content !== NULL) { $this->setContent($content); } if ($header !== NULL) { $this->addHeader($header); } if ($footer !== NULL) { $this->addFooter($footer); } }
public function __construct($identifier, $tagName) { parent::__construct($identifier, $tagName); $this->root = ""; $this->attr = "data-ajax"; }
public function __construct($identifier, $tagName = "ul") { parent::__construct($identifier, $tagName); $this->_template = "<%tagName% %properties%>%tabs%</%tagName%>%content%"; $this->setProperty("class", "nav nav-" . $this->_tabsType); }
public function __construct($identifier, $caption = "") { parent::__construct($identifier, "span"); $this->content = $caption; $this->setProperty("class", "badge"); }
public function __construct($identifier, $href = "#", $content = "Link") { parent::__construct($identifier, "a"); $this->setHref($href); $this->content = $content; }
public function __construct($identifier, $tagName = "div") { parent::__construct($identifier, $tagName); $this->setProperty("role", "tabpanel"); $this->setProperty("class", "tab-pane"); }