Exemple #1
0
 protected function doInit()
 {
     $this->html = HTML::Tag('div', new stdClass())->addClass('\\Psc\\tabs');
     $this->html->content->ul = HTML::Tag('ul', array(), array('class' => 'ui-tabs-nav'));
     $this->html->templateContent = new stdClass();
     $this->html->templateContent->select = NULL;
     $this->html->templateAppend("\n%select%");
     if (count($this->widgetOptions) > 0) {
         // wir initialisieren nicht, wenn PHP eh keine Settings hat
         parent::doInit();
     }
     if (isset($this->tab0Template)) {
         $this->add($this->tab0Template->__('title'), $this->tab0Template->get(), NULL, NULL, FALSE);
         // nicht schließbar
     }
 }
Exemple #2
0
 protected function doInit()
 {
     $this->html = new HTMLTag('button', new HTMLTag('span', $this->getLabel(), array('class' => 'ui-button-text')), array('class' => '\\Psc\\button'));
     $this->html->addClass(array('ui-button', 'ui-widget', 'ui-state-default', 'ui-corner-all'));
     if (isset($this->leftIcon)) {
         $this->html->addClass('ui-button-text-icon-primary');
     }
     if (isset($this->rightIcon)) {
         $this->html->addClass('ui-button-text-icon-secondary');
     }
     if (!isset($this->leftIcon) && !isset($this->rightIcon)) {
         $this->html->addClass('ui-button-text-only');
     }
     parent::doInit();
     if (isset($this->data)) {
         foreach ($this->data as $key => $value) {
             jQuery::data($this->html, $key, $value);
         }
     }
     if (isset($this->hint)) {
         $this->html->after($this->hint);
     }
 }