/** * Runs the item stock import cronjob. * * @param Shopware_Components_Cron_CronJob $Job */ public function onRunItemStockImportCron(Shopware_Components_Cron_CronJob $Job) { PlentymarketsCronjobController::getInstance()->runItemStockImport($Job); }
/** * If an instance of PlentymarketsCronjobController exists, it returns this instance. * Else it creates a new instance of PlentymarketsCronjobController. * * @return PlentymarketsCronjobController */ public static function getInstance() { if (!self::$Instance instanceof self) { self::$Instance = new self(); } return self::$Instance; }