function ReportVisitsStatisticsByDay()
 {
     parent::CReportView();
     $this->__render_class_name = 'CReportRenderStockChart';
     $this->__source_class_name = 'CVisitorStatisticsByDays';
     $this->__render_settings_class_name = 'CReportRenderSettings';
 }
 function ReportVisitorOS()
 {
     parent::CReportView();
     $this->__render_class_name = 'CReportRenderFlatTable';
     $this->__source_class_name = 'CVisitorOSStatistics';
     $this->__render_settings_class_name = 'CReportRenderSettings';
 }
 function ReportProductAddedCartVsSalesByDay()
 {
     parent::CReportView();
     $this->__render_class_name = 'CReportRenderStockChart';
     $this->__source_class_name = 'CProductSoldExtendedStatisticsByDays';
     $this->__render_settings_class_name = 'CReportRenderSettings';
 }
 function ReportAllProducts()
 {
     parent::CReportView();
     $this->__render_class_name = 'CReportRenderFlatTable';
     $this->__source_class_name = 'CProductAllSellersByItems';
     $this->__render_settings_class_name = 'CReportRenderSettings';
 }
 function ChartProductViewsByDay()
 {
     parent::CReportView();
     $this->__render_class_name = 'CReportRenderChart';
     $this->__source_class_name = 'CProductStatisticsByDays';
     $this->__render_settings_class_name = 'CReportRenderSettings';
 }
 function ChartTaxByDay()
 {
     parent::CReportView();
     $this->__render_class_name = 'CReportRenderChart';
     //$this->__render_class_name = 'CReportRenderFlatTable';
     $this->__source_class_name = 'COrderTotalStatisticsByDays';
     $this->__render_settings_class_name = 'CReportRenderSettings';
     $this->__currency = modApiFunc("Localization", "getCurrencyCodeById", modApiFunc("Localization", "getMainStoreCurrency"));
 }
 function ReportAbandonmentRatesByDay()
 {
     parent::CReportView();
     #$this->__render_class_name = 'CReportRenderFlatTable';
     $this->__render_class_name = 'CReportRenderStockChart';
     $this->__source_class_name = 'COrdersVisitorsCartsStatisticsByDays';
     $this->__render_settings_class_name = 'CReportRenderSettings';
     //        $this->__currency = modApiFunc("Localization", "getCurrencyCodeById", modApiFunc("Localization", "getMainStoreCurrency"));
 }
 function ChartVisitorStatisticsByDay($report_name, $field, $field_name)
 {
     parent::CReportView();
     $this->__render_class_name = 'CReportRenderChart';
     $this->__source_class_name = 'CVisitorStatisticsByDays';
     $this->__render_settings_class_name = 'CReportRenderSettings';
     $this->__field = $field;
     $this->__field_name = $field_name;
     $this->__report_name = $report_name;
 }
 function prepareData()
 {
     $this->__total_views = 0;
     $this->__total_items_sold = 0;
     $this->__total_added_to_cart_times = 0;
     $this->__total_added_to_cart_qty = 0;
     $this->__total_deleted_from_cart_qty = 0;
     $this->__total_deleted_from_cart_times = 0;
     parent::prepareData();
 }
 function initSource()
 {
     $type = modApiFunc('Request', 'getValueByKey', 'type');
     if ($type == "robot") {
         $id = modApiFunc('Request', 'getValueByKey', 'id');
         //$date = modApiFunc('Request','getValueByKey','date');
         $this->__source->setParams('id', $id);
         //$this->__source->setParams('date', $date);
     } else {
         parent::initSource();
         $seance_id = modApiFunc('Request', 'getValueByKey', 'sid');
         if (Validator::isValidInt($seance_id) == true) {
             $this->__source->setParams('seance_ids', array($seance_id));
         }
     }
 }