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); } }
public function __construct(array $options = array(), Template $tab0Template) { $this->tab0Template = $tab0Template; parent::__construct('tabs', $options); $this->exporter = new Exporter(); }