コード例 #1
0
 /**
  * Constructor.
  *
  * @param QueryBuilderFactory   $builderFactory
  * @param UrlGenerator          $routingGenerator
  */
 public function __construct(QueryBuilderFactory $builderFactory, UrlGenerator $routingGenerator)
 {
     parent::__construct($builderFactory, $routingGenerator);
     $this->_setName('discount_summary');
     $this->_setDisplayName('Discount Summary');
     $this->_setReportGroup('Discounts & Vouchers');
     $this->_charts = [new TableChart()];
 }
コード例 #2
0
 /**
  * Constructor.
  *
  * @param QueryBuilderFactory   $builderFactory
  * @param UrlGenerator          $routingGenerator
  */
 public function __construct(QueryBuilderFactory $builderFactory, UrlGenerator $routingGenerator)
 {
     parent::__construct($builderFactory, $routingGenerator);
     $this->_setName('search_terms');
     $this->_setDisplayName('Search Terms');
     $this->_setReportGroup('Logs');
     $this->_setDescription('This report shows all searches made on the site.');
     $this->_charts = [new TableChart()];
 }
コード例 #3
0
 /**
  * Constructor.
  *
  * @param DB\QueryBuilderFactory   $builderFactory
  * @param UrlGenerator             $routingGenerator
  * @param CountryList              $countryList
  * @param StateList                $stateList
  * @param FilterCollection         $filters
  * @param EventDispatcher          $dispatcher
  */
 public function __construct(DB\QueryBuilderFactory $builderFactory, UrlGenerator $routingGenerator, CountryList $countryList, StateList $stateList, FilterCollection $filters, EventDispatcher $dispatcher)
 {
     parent::__construct($builderFactory, $routingGenerator);
     $this->_setName('user_summary');
     $this->_setDisplayName('User Summary');
     $this->_setReportGroup('Users');
     $this->_charts = [new TableChart()];
     $this->_countryList = $countryList;
     $this->_stateList = $stateList;
     $this->_filters = $filters;
     $this->_dispatcher = $dispatcher;
 }
コード例 #4
0
 /**
  * @param DB\QueryBuilderFactory $builderFactory
  * @param UrlGenerator $routingGenerator
  * @param FilterCollection $filters
  * @param EventDispatcher $dispatcher
  * @param Translator $translator
  */
 public function __construct(DB\QueryBuilderFactory $builderFactory, UrlGenerator $routingGenerator, FilterCollection $filters, EventDispatcher $dispatcher, Translator $translator)
 {
     parent::__construct($builderFactory, $routingGenerator);
     $this->_setName('mailing_subscribers');
     $this->_setDisplayName('Subscribers');
     $this->_setReportGroup('Mailing');
     $this->_charts = [new TableChart()];
     $this->_filters = $filters;
     $this->_dispatcher = $dispatcher;
     $this->_translator = $translator;
     $this->_description = $this->_translator->trans('ms.mailing.report.subscribers.description');
 }
コード例 #5
0
 /**
  * Constructor.
  *
  * @param QueryBuilderFactory   $builderFactory
  * @param UrlGenerator          $routingGenerator
  * @param DispatcherInterface   $eventDispatcher
  * @param array                 $currencies
  */
 public function __construct(QueryBuilderFactory $builderFactory, UrlGenerator $routingGenerator, DispatcherInterface $eventDispatcher, array $currencies)
 {
     parent::__construct($builderFactory, $routingGenerator, $eventDispatcher);
     $this->_eventDispatcher = $eventDispatcher;
     $this->_builderFactory = $builderFactory;
     $this->_charts[] = new TableChart();
     $this->_filters->add(new DateRange());
     // Params for Choices filter: unique filter name, label, choices, multi-choice
     $this->_filters->add(new Choices("currency", "Currency", $currencies, false));
     $this->_filters->add(new Choices("type", "Sale Type", ['Order', 'Return', 'Exchange', 'Shipping'], true));
     $this->_filters->add(new BrandFilter("Brand", $this->_getBrands()));
     $this->_filters->add(new Choices("source", "Source", ['Web', 'EPOS'], true));
 }
コード例 #6
0
 /**
  * Constructor.
  *
  * @param QueryBuilderFactory   $builderFactory
  * @param UrlGenerator          $routingGenerator
  * @param DispatcherInterface   $eventDispatcher
  */
 public function __construct(QueryBuilderFactory $builderFactory, UrlGenerator $routingGenerator, DispatcherInterface $eventDispatcher)
 {
     parent::__construct($builderFactory, $routingGenerator, $eventDispatcher);
     $this->_eventDispatcher = $eventDispatcher;
 }