function init() { parent::init(); if (!$this->template->is_set($this->item_tag)) { throw $this->exception('Template must have "' . $this->item_tag . '" tag'); } $this->row_t = $this->template->cloneRegion($this->item_tag); }
function init() { parent::init(); if (!$this->template->is_set('row')) { throw $this->exception('Template must have "row" tag'); } $this->row_t = $this->template->cloneRegion('row'); if ($this->template->is_set('totals')) { $this->totals_t = $this->template->cloneRegion('totals'); } }
/** * Initialization * * @retun void */ function init() { parent::init(); if (!$this->template->hasTag($this->item_tag)) { if (@$this->app->compat_42 and $this instanceof Menu_Basic) { // look for MenuItem $default = $this->item_tag; $this->item_tag = 'MenuItem'; $this->container_tag = 'Item'; if (!$this->template->hasTag($this->item_tag)) { throw $this->template->exception('Template must have "' . $default . '" tag')->addMoreInfo('compat', 'Also tried for compatibility reason "' . $this->item_tag . '" tag'); } } else { throw $this->template->exception('Template must have "' . $this->item_tag . '" tag'); } } $this->row_t = $this->template->cloneRegion($this->item_tag); if ($this->template->hasTag('sep')) { $this->sep_html = $this->template->get('sep'); } }
function init() { parent::init(); }
function init() { parent::init(); $this->l = $this->add("Export_Lister", null, "aux", array("export/xls_cell")); unset($this->elements[$this->l->name]); $this->template->set("aux", ""); }