/** * @param Varien_Data_Form_Element_Fieldset $fieldset * @param Bronto_News_Model_Item $item * * @return Varien_Data_Form_Element_Abstract */ protected function addItemToFieldset($fieldset, $item) { $field = $fieldset->addField($item->getId(), 'link', array('value' => $item->getTitle(), 'title' => $item->getTitle(), 'href' => $item->getLink(), 'news_item' => $item, 'target' => '_blank', 'field_config' => $this->_getItemDefinition())); return $field; }
/** * Wraps the internal notification URL with a controller route to * mark the notification as read * * @param Bronto_News_Model_Item $item * * @return string */ protected function wrapNotificationUrl(Bronto_News_Model_Item $item) { return Mage::app()->getStore()->getUrl('announcement/route/index', array('item' => $item->getId())); }