您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CsvGenerator.php 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace Lc\ShopBundle\Services;
  3. use Cocur\Slugify\Slugify;
  4. use Doctrine\ORM\EntityManagerInterface;
  5. use EasyCorp\Bundle\EasyAdminBundle\Configuration\ConfigManager;
  6. use Lc\ShopBundle\Context\MerchantUtilsInterface;
  7. use Lc\ShopBundle\Context\PageInterface;
  8. use Lc\ShopBundle\Context\PointSaleInterface;
  9. use Lc\ShopBundle\Context\ReminderInterface;
  10. use Lc\ShopBundle\Context\TaxRateInterface;
  11. use Lc\ShopBundle\Context\UnitInterface;
  12. use Lc\ShopBundle\Context\UserInterface;
  13. use Lc\ShopBundle\Context\UserPointSaleInterface;
  14. use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
  15. use Symfony\Component\HttpFoundation\ParameterBag;
  16. use Symfony\Component\HttpFoundation\Session\SessionInterface;
  17. use Symfony\Contracts\Translation\TranslatorInterface;
  18. class CsvGenerator
  19. {
  20. protected $em ;
  21. protected $parameterBag ;
  22. protected $merchantUtils ;
  23. protected $session;
  24. protected $translator;
  25. protected $configManager;
  26. protected $arrayToExport;
  27. protected $columns;
  28. public function __construct()
  29. {
  30. }
  31. public function setColumns($columns){
  32. $this->columns = $columns;
  33. }
  34. public function setCell($row, $column, $value){
  35. $this->arrayToExport[$row][$column] = $value;
  36. }
  37. }