/** * * @param string $identifier the id */ public function __construct($identifier) { parent::__construct($identifier); $this->tagName = "ul"; $this->_template = '<%tagName% id="%identifier%" class="nav navbar-nav %class%">%elements%</%tagName%>'; $this->elements = array(); }
public function fromArray($array) { $array = parent::fromArray($array); foreach ($array as $key => $value) { $this->setProperty($key, $value); } return $array; }
/** * * @param string $identifier the id */ public function __construct($identifier, $title = "", $content = "", $buttonCaptions = array()) { parent::__construct($identifier); $this->_template = (include 'templates/tplModal.php'); $this->buttons = array(); $this->title = $title; $this->content = $content; foreach ($buttonCaptions as $button) { $this->addButton($button); } }
public function compile(JsUtils $js = NULL, View $view = NULL) { $this->slides[0]->setClass("item active"); $this->indicators[0]->setClass("active"); $this->createControls(); return parent::compile($js, $view); }
/** * /* (non-PHPdoc) * @see BaseHtml::addProperties() */ public function fromArray($array) { return parent::fromArray($array); }
public function __construct($identifier) { parent::__construct($identifier); $this->_template = (include __DIR__ . '/../templates/tplCarouselItem.php'); }