Exemplo n.º 1
0
 function create()
 {
     global $gorumroll, $gorumuser, $gorumrecognised, $shoppingCartClassName;
     if (empty($this->columnIndex)) {
         $this->columnIndex = "col_" . CustomField::getNextColumnIndex($this->cid);
     }
     $this->sortId = CustomField::getNextSortId($this->cid);
     $this->getDefaultValue();
     $this->getEnumValuesFromFile();
     parent::create();
     if (!Roll::isFormInvalid()) {
         if (!empty($this->seo)) {
             $this->handleSeoChange();
         }
         if (!empty($this->mainPicture)) {
             $this->handleMainPictureChange();
         }
         // Uj oszlopot kell letrehoznunk, ha az ujonan krealt fielddel egyutt a szukseges oszlopok szama meghaladja az eddigi maximumot:
         $this->addNewColumnToManagedTable();
         load($this);
         $this->handleDefaultValue();
         if (isset($gorumroll)) {
             $this->nextAction =& new AppController("{$gorumroll->list}/sortfield_form/{$this->cid}");
         }
     }
 }