public function compile(JsUtils $js = NULL, View $view = NULL) { foreach ($this->cols as $col) { $this->addContent($col); } return parent::compile($js, $view); }
public function compile(JsUtils $js = NULL, View $view = NULL) { if ($this->closeable && $this->button === "") { $this->addCloseButton(); } return parent::compile($js, $view); }
public function compile(JsUtils $js = NULL, View $view = NULL) { $this->content = array(); if (isset($this->default)) { $default = new HtmlOption("", $this->default); $this->content[] = $default; } foreach ($this->options as $option) { $this->content[] = $option; } return parent::compile($js, $view); }
public function compile(JsUtils $js = NULL, View $view = NULL) { if (isset($js)) { $this->formElementsPrefix = $js->config()->getVar("formElementsPrefix"); foreach ($this->futureElements as $futureElement) { $futureElementValue = $this->getPrefix($futureElement); $futureElementValues = explode("_", $futureElementValue); switch ($futureElementValues[0]) { case "input": $control = new HtmlInput($futureElement); $control->setClass("form-control"); $control->setLabel($this->getPart($futureElement)); break; case "checkbox": $control = new HtmlInputCheckbox($futureElement); $control->setLabel($this->getPart($futureElement), false); break; case "radio": $name = $this->getPart($futureElement); $label = $this->getPart($futureElement, 2); $control = new HtmlInputRadio($futureElement); $control->setProperty("name", strtolower($name)); $control->setLabel($label, false); break; case "select": $control = new HtmlSelect($futureElement); $control->setProperty("size", $futureElementValues[1]); $control->setClass("form-control"); $control->setLabel($this->getPart($futureElement)); break; default: $control = new HtmlInput($futureElement); $control->setClass("form-control"); $control->setLabel($this->getPart($futureElement)); break; } $this->addElement($control); } } foreach ($this->formGroups as $group) { $this->addContent($group); } return parent::compile($js, $view); }
public function compile(JsUtils $js = NULL, View $view = NULL) { $this->_template = str_replace("%caption%", $this->caption, $this->_template); if ($this->getIsStacked() === false) { $this->wrap('<div class="progress">', '</div>'); } return parent::compile($js, $view); }
public function compile(JsUtils $js = NULL, View $view = NULL) { $this->setProperty("class", "nav nav-" . $this->_tabsType . " " . $this->stacked); return parent::compile($js, $view); }
public function compile(JsUtils $js = NULL, View $view = NULL) { $this->setProperty("class", $this->_generateClass()); return parent::compile($js, $view); }
public function compile(JsUtils $js = NULL, View $view = NULL) { $actualStyle = $this->style; if (isset($this->styleLimits) && JArray::isAssociative($this->styleLimits)) { foreach ($this->styleLimits as $k => $v) { $actualStyle = $k; if ($v > $this->value) { break; } } } $this->style = $actualStyle; $this->_template = str_replace("%caption%", $this->caption, $this->_template); if ($this->getIsStacked() === false) { $this->wrap('<div class="progress">', '</div>'); } return parent::compile($js, $view); }