/** * Fill Message Box by success and notice messages about results of user actions. * * @param Varien_Object $counter * @return void */ protected function _fillMessageBox($counter) { $session = Mage::getSingleton('catalog/session'); if ($counter->getNew()) { $session->addSuccess($this->__('%s tag(s) have been accepted for moderation.', $counter->getNew())); } if (count($counter->getExist())) { foreach ($counter->getExist() as $tagName) { $session->addNotice($this->__('Tag "%s" has already been added to the product.', $tagName)); } } if (count($counter->getSuccess())) { foreach ($counter->getSuccess() as $tagName) { $session->addSuccess($this->__('Tag "%s" has been added to the product.', $tagName)); } } if (count($counter->getRecurrence())) { foreach ($counter->getRecurrence() as $tagName) { $session->addSuccess($this->__('Tag "%s" has been rejected by administrator.', $tagName)); } } }