protected function initInternal() { parent::initInternal(); // override default xml $this->ui = new AdminUI(); $this->ui->loadFromXML(dirname(__FILE__) . '/time.xml'); }
protected function initInternal() { $this->ui_xml = dirname(__FILE__) . '/merge.xml'; parent::initInternal(); $id = SiteApplication::initVar('id', null, SiteApplication::VAR_GET); if ($id !== null) { $this->setItems(array($id)); } if (count($this->items) != 1) { throw new SiteNotFoundException('Only 1 id at a time!'); } foreach ($this->items as $item) { $id = $item; } $this->source_tag = $this->getTag($id); $this->ui->getWidget('dst_tag')->setApplication($this->app); $this->ui->getWidget('dst_tag')->setAllTags(); }