Esempio n. 1
0
 /**
  * Format OrderItem to CSV format
  *
  * @param \Extcode\Cart\Domain\Model\Order\Item $orderItem Order Item
  * @param string $delim Delimiter
  * @param string $quote Quote Style
  *
  * @return string
  */
 public function render(\Extcode\Cart\Domain\Model\Order\Item $orderItem, $delim = ',', $quote = '"')
 {
     $orderItemArr = [];
     $orderItemArr[] = $orderItem->getBillingAddress()->getSalutation();
     $orderItemArr[] = $orderItem->getBillingAddress()->getTitle();
     $orderItemArr[] = $orderItem->getBillingAddress()->getFirstName();
     $orderItemArr[] = $orderItem->getBillingAddress()->getLastName();
     $orderItemArr[] = $orderItem->getOrderNumber();
     $orderItemArr[] = $orderItem->getInvoiceNumber();
     return \TYPO3\CMS\Core\Utility\GeneralUtility::csvValues($orderItemArr, $delim, $quote);
 }