Example #1
0
 /**
  * Get value of the "name" column
  *
  * @param \XLite\Module\XC\PitneyBowes\Model\PBExport $item Export item model
  *
  * @return string
  */
 protected function getStatusColumnValue(\XLite\Module\XC\PitneyBowes\Model\PBExport $item)
 {
     $result = static::t('Unknown');
     switch ($item->getStatus()) {
         case \XLite\Module\XC\PitneyBowes\Model\PBExport::STATUS_PENDING:
             $result = static::t('Pending');
             break;
         case \XLite\Module\XC\PitneyBowes\Model\PBExport::STATUS_APPROVED:
             $result = static::t('Approved');
             break;
         case \XLite\Module\XC\PitneyBowes\Model\PBExport::STATUS_FAILED:
             $result = static::t('Failed');
             break;
     }
     return $result;
 }