| 1 |
<?php |
<?php |
| 2 |
// $Id: station_schedule_handler_sort_time.inc,v 1.2 2009/01/13 05:13:29 drewish Exp $ |
// $Id: station_schedule_handler_sort_time.inc,v 1.3 2009/06/08 21:53:06 drewish Exp $ |
| 3 |
|
|
| 4 |
class station_schedule_handler_sort_time extends views_handler_sort { |
class station_schedule_handler_sort_time extends views_handler_sort { |
| 5 |
function option_definition() { |
function option_definition() { |
| 36 |
break; |
break; |
| 37 |
|
|
| 38 |
case 'now': |
case 'now': |
| 39 |
$formula = "(($this->table_alias.$this->real_field - ***CURRENT_STATION_MINUTE***) + $minutes_in_week) %% $minutes_in_week"; |
$formula = "(($this->table_alias.$this->real_field - ***STATION_CURRENT_MINUTE***) + $minutes_in_week) %% $minutes_in_week"; |
| 40 |
break; |
break; |
| 41 |
|
|
| 42 |
default: |
default: |