コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function render(Varien_Object $row)
 {
     $id = $row->getMessageId();
     $executed = $row->getExecuted();
     if (!$id && $executed) {
         return __('Pending');
     }
     if (!$id & $row->getType() == 'import') {
         $id = SixBySix_RealTimeDespatch_Model_Resource_Request_Line_Collection::getNextSequencesId($row->getEntity());
     }
     if (!$id) {
         $id = __('Pending');
     }
     return $id;
 }
コード例 #2
0
 /**
  * Checks whether a request line has been previously processed.
  *
  * @param float $reference
  *
  * @return boolean
  */
 public function hasLineBeenPreviouslyProcessed($reference)
 {
     if (isset($this->_processedIds[$reference])) {
         return true;
     }
     return SixBySix_RealTimeDespatch_Model_Resource_Request_Line_Collection::isDuplicate($this->_getEntity(), $reference);
 }