/**
  * Get the feed URL contents which include information about the last time a feed was generate, lock file information and scripts contents
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
 {
     $element->addClass('link');
     $lock = Mage::getModel('eems_display/file_lock');
     $this->addData(array('name' => $element->getName(), 'escaped_value' => $element->getEscapedValue(), 'is_lock_file_exist' => $lock->isLockFileExist(), 'lock_file_exist_text' => $this->_helper->__($lock->getLockFileExistText()), 'fail_to_remove_lock_file_text' => $this->_helper->__($lock->getFailRemoveLockFileText()), 'escaped_button_label' => $this->_helper->__($this->escapeHtml($lock->getRemoveLockButonText())), 'html_id' => $element->getHtmlId(), 'ajax_url' => $this->getUrl(static::REMOVE_LOCK_FILE_CONTROLLER, array('_current' => true))));
     return $this->_toHtml();
 }
 /**
  * The is feed directory writable message to be displayed in the backend interface.
  * @return string
  */
 public function getIsFeedDirectoryWritableMessage()
 {
     return $this->_helper->__(sprintf(static::IS_FEED_DIRECTORY_WRITABLE_MESSAGE, Mage::helper('eems_display/config')->getFeedFileRelativePath()));
 }
 /**
  * Calculating the time it took in minutes to successfully run the product feed by using the
  * the last run date time from configuration and the current time now.
  * @return float
  */
 protected function _calculateDuration()
 {
     $interval = $this->_helper->getDateInterval($this->_config->getFeedLastRunDatetime(), $this->_date->date(static::TIME_FORMAT));
     return $this->_helper->calculateTimeElapseInMinutes($interval);
 }