public function process() { // Check tasks config mode //----------------------------- $config = Mage::helper('M2ePro/Module')->getSynchronizationConfig(); $reviseMode = (bool) (int) $config->getGroupValue('/ebay/other_listings/templates/revise/', 'mode'); $relistMode = (bool) (int) $config->getGroupValue('/ebay/other_listings/templates/relist/', 'mode'); $stopMode = (bool) (int) $config->getGroupValue('/ebay/other_listings/templates/stop/', 'mode'); if (!$reviseMode && !$relistMode && !$stopMode) { return false; } //----------------------------- // PREPARE SYNCH //--------------------------- $this->prepareSynch(); $this->createRunnerActions(); //--------------------------- // RUN CHILD SYNCH //--------------------------- if ($reviseMode) { $tempSynch = new Ess_M2ePro_Model_Ebay_Synchronization_Tasks_OtherListings_Templates_Revise(); $tempSynch->process(); } if ($relistMode) { $tempSynch = new Ess_M2ePro_Model_Ebay_Synchronization_Tasks_OtherListings_Templates_Relist(); $tempSynch->process(); } if ($stopMode) { $tempSynch = new Ess_M2ePro_Model_Ebay_Synchronization_Tasks_OtherListings_Templates_Stop(); $tempSynch->process(); } //--------------------------- Ess_M2ePro_Model_Ebay_Synchronization_Tasks_OtherListings_Templates_Abstract::clearCache(); // CANCEL SYNCH //--------------------------- $this->executeRunnerActions(); $this->cancelSynch(); //--------------------------- }
public static function clearCache() { return self::$listingOtherProductsCache = self::$listingOtherProductsByParamsCache = array(); }