Exemplo n.º 1
0
 protected function setDisplayData()
 {
     parent::setDisplayData();
     if ($this->getAction() == 'menu') {
         $listConfig = $this->getListConfig();
         if (($primary = $this->getPrimary()) instanceof I2CE_List) {
             $this->template->setDisplayData("type_name", $primary->getDisplayName());
             $this->template->setDisplayData("form", $primary->getName());
             $this->template->setDisplayData("form_name", $primary->getName());
             $this->template->setDisplayData("id", $primary->getNameId());
         }
         if (!$listConfig['type']) {
             //$this->template->setDisplayData( "form", $this->request('form'));
             $this->template->setDisplayData("form_name", $this->request('form_name'));
         } else {
             $this->template->setDisplayData("type", $this->request('type'));
         }
         $this->template->setDisplayData("link", $this->request("link"));
         if (I2CE_FormStorage::isWritable($this->getPrimaryFormName())) {
             $this->template->setDisplayData("list_is_writable", 1);
         } else {
             $this->template->setDisplayData("list_is_writable", 0);
         }
     }
 }