calendar/inc/class.calendar_export_csv.inc.php 1 location
|
@@ 98-110 (lines=13) @@
|
| 95 |
|
case 'day': |
| 96 |
|
$query += $this->get_query_day($states); |
| 97 |
|
break; |
| 98 |
|
default: |
| 99 |
|
// Let UI set the date ranges |
| 100 |
|
$ui = new calendar_uiviews($query); |
| 101 |
|
if(method_exists($ui, $states['view'])) |
| 102 |
|
{ |
| 103 |
|
ob_start(); |
| 104 |
|
$ui->$states['view'](); |
| 105 |
|
ob_end_clean(); |
| 106 |
|
} |
| 107 |
|
$query += array( |
| 108 |
|
'start' => is_array($ui->first) ? $this->bo->date2ts($ui->first) : $ui->first, |
| 109 |
|
'end' => is_array($ui->last) ? $this->bo->date2ts($ui->last) : $ui->last |
| 110 |
|
); |
| 111 |
|
|
| 112 |
|
} |
| 113 |
|
$boupdate = new calendar_boupdate(); |
calendar/inc/class.calendar_export_ical.inc.php 1 location
|
@@ 90-102 (lines=13) @@
|
| 87 |
|
case 'day': |
| 88 |
|
$query += calendar_export_csv::get_query_day($states); |
| 89 |
|
break; |
| 90 |
|
default: |
| 91 |
|
// Let UI set the date ranges |
| 92 |
|
$ui = new calendar_uiviews($query); |
| 93 |
|
if(method_exists($ui, $states['view'])) |
| 94 |
|
{ |
| 95 |
|
ob_start(); |
| 96 |
|
$ui->$states['view'](); |
| 97 |
|
ob_end_clean(); |
| 98 |
|
} |
| 99 |
|
$query += array( |
| 100 |
|
'start' => is_array($ui->first) ? $this->bo->date2ts($ui->first) : $ui->first, |
| 101 |
|
'end' => is_array($ui->last) ? $this->bo->date2ts($ui->last) : $ui->last |
| 102 |
|
); |
| 103 |
|
|
| 104 |
|
} |
| 105 |
|
$boupdate = new calendar_boupdate(); |