Example #1
0
 /**
  *
  * @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;
 }
Example #3
0
 /**
  *
  * @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);
     }
 }
Example #4
0
 /**
  * /* (non-PHPdoc)
  * @see BaseHtml::addProperties()
  */
 public function fromArray($array)
 {
     return parent::fromArray($array);
 }
Example #5
0
 public function compile(JsUtils $js = NULL, &$view = NULL)
 {
     $this->slides[0]->setClass("item active");
     $this->indicators[0]->setClass("active");
     $this->createControls();
     return parent::compile($js, $view);
 }
 public function __construct($identifier)
 {
     parent::__construct($identifier);
     $this->_template = (include __DIR__ . '/../templates/tplCarouselItem.php');
 }