Example #1
0
 /**
  * Standard export renderer for period columns
  *
  * @author Jonathan Davis
  * @since 1.3
  *
  * @param object $data The source data record
  * @param string $column The column key name
  * @param string $title The column title label
  * @param array $options The options for this report
  * @return void
  **/
 static function export_period($data, $column, $title, $options)
 {
     $date_format = get_option('date_format');
     $time_format = get_option('time_format');
     $datetime = "{$date_format} {$time_format}";
     switch (strtolower($options['scale'])) {
         case 'day':
             echo date($date_format, $data->period);
             break;
         case 'week':
             echo ShoppReportFramework::weekrange($data->period, array($date_format, $date_format));
             break;
         default:
             echo date($datetime, $data->period);
             break;
     }
 }
Example #2
0
 function filters()
 {
     ShoppReportFramework::rangefilter();
     ShoppReportFramework::filterbutton();
 }