/** * Returns the progress message for the current import step. A Progress-Object will be passed, so * you can get some context info for your snippet * * @param Shopware_Components_Migration_Import_Progress $progress * @return string */ public function getCurrentProgressMessage($progress) { if ($this->getInternalName() == 'import_categories') { return sprintf($this->getNameSpace()->get('progressCategories', "%s out of %s categories imported"), $progress->getOffset(), $progress->getCount()); } elseif ($this->getInternalName() == 'import_article_categories') { return sprintf($this->getNameSpace()->get('progressArticleCategories', "%s out of %s articles assigned to categories"), $progress->getOffset(), $progress->getCount()); } }
/** * Returns the progress message for the current import step. A Progress-Object will be passed, so * you can get some context info for your snippet * * @param Shopware_Components_Migration_Import_Progress $progress * @return string */ public function getCurrentProgressMessage($progress) { return sprintf($this->getNameSpace()->get('progressProducts', "%s out of %s products imported"), $progress->getOffset(), $progress->getCount()); }