コード例 #1
0
 /**
  * main action
  */
 public function mainAction()
 {
     set_time_limit(0);
     $Store = new ecommerce_store();
     /**
      * Get the list
      */
     $date_from = $this->GET['date_from'];
     $date_to = $this->GET['date_to'];
     $records = $Store->getDataForNoticesReport($date_from, $date_to);
     $this->commonCSVAction($records, 'store_notices');
     return true;
 }
コード例 #2
0
 /**
  * main action
  */
 public function mainAction()
 {
     set_time_limit(0);
     $Store = new ecommerce_store();
     /**
      * Get the list
      */
     $date_from = date("Y-m-d", strtotime("first day of last month"));
     $date_to = date("Y-m-d", strtotime("first day of this month"));
     if (isset($this->GET['date_from'])) {
         $date_from = $this->GET['date_from'];
     }
     if (isset($this->GET['date_to'])) {
         $date_to = $this->GET['date_to'];
     }
     $records = $Store->getDataForNoticesReport($date_from, $date_to);
     $this->commonCSVAction($records, 'store_notices-' . $date_to);
     return true;
 }