Beispiel #1
0
 function addDefaultCustomFields($fromInstall = FALSE)
 {
     global $lll;
     if ($this->up) {
         // az alkategoria orokli az apja custom fieldjeit:
         G::load($customFields, array("SELECT * FROM @customfield WHERE cid=#up#", $this->up));
         foreach ($customFields as $cf) {
             $cf->cid = $this->id;
             unset($cf->id);
             create($cf);
         }
     } else {
         ItemField::addDefaultCustomFields($fromInstall, $this->id);
     }
 }