function deleteItem($iItemID, $iAreaID) { $oFields = new MlClonetwoPSFM($iAreaID); $oFields->deleteItem($iItemID); $oCacher = new BxDolPSFMCacher(); $oCacher->createCache(); }
function loadCache($bCycle = true) { global $site; /*if ((int)$site['build'] < 3) { $this->loadOldCache(); return true; }*/ $oCache = $GLOBALS['MySQL']->getDbCacheObject(); $this->aCache = $oCache->getData($GLOBALS['MySQL']->genDbCacheKey('ml_clonetwo_fields')); if (null === $this->aCache || !is_array($this->aCache)) { $oPFM = new BxDolPSFMCacher(); if (!$oPFM->createCache()) { return false; } if ($bCycle) { //to prevent cycling return $this->loadCache(false); } else { return false; } } $this->aArea = $this->aCache[$this->iAreaID]; //load blocks $this->aBlocks = $this->aArea; //get mutual fields $this->_getCoupleMutualFields(); return true; }