Ejemplo n.º 1
0
 public function __construct($label, $leftIcon = NULL, $rightIcon = NULL, array $data = NULL)
 {
     $this->setLabel($label);
     parent::__construct('button');
     // construct zuerst dann die icons
     $this->loadWithAttributes();
     if (isset($leftIcon)) {
         $this->setLeftIcon($leftIcon);
     }
     if (isset($rightIcon)) {
         $this->setRightIcon($rightIcon);
     }
     if (isset($data)) {
         $this->setData($data);
     }
 }
Ejemplo n.º 2
0
 public function __construct(array $options = array(), Template $tab0Template)
 {
     $this->tab0Template = $tab0Template;
     parent::__construct('tabs', $options);
     $this->exporter = new Exporter();
 }