コード例 #1
0
ファイル: HtmlNavzone.php プロジェクト: munozdaniel/sya
 /**
  *
  * @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();
 }
コード例 #2
0
 public function fromArray($array)
 {
     $array = parent::fromArray($array);
     foreach ($array as $key => $value) {
         $this->setProperty($key, $value);
     }
     return $array;
 }
コード例 #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);
     }
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 /**
  * /* (non-PHPdoc)
  * @see BaseHtml::addProperties()
  */
 public function fromArray($array)
 {
     return parent::fromArray($array);
 }
コード例 #6
0
 public function __construct($identifier)
 {
     parent::__construct($identifier);
     $this->_template = (include __DIR__ . '/../templates/tplCarouselItem.php');
 }