Changeset 5652 for trunk/prototype/modules/calendar/interceptors
- Timestamp:
- 03/07/12 00:06:34 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/interceptors/DBMapping.php
r5641 r5652 42 42 $schedulable = Controller::read( array( 'concept' => 'schedulable' , 'id' => $participant['schedulable'] ) , array('startTime' , 'endTime' ) ); 43 43 44 45 /* 46 if(!is_numeric($params['startTime']) ) 47 $params['startTime'] = strtotime( $params['startTime'] . ' ' .$params['timezone']).'000'; 48 49 if (!is_numeric($params['endTime'])){ 50 $params['endTime'] = strtotime( $params['endTime'] . ' ' .$params['timezone']).'000'; 51 52 if($params['allDay']) 53 $params['endTime'] = $params['endTime'] + 86400000; 54 */ 55 56 ob_start(); 57 print_r($params); 58 print_r($schedulable); 59 60 $output = ob_get_clean(); 61 file_put_contents( "/tmp/acoutinho.log", $output , FILE_APPEND); 62 63 64 44 65 $params['schedulable'] = $participant['schedulable']; 45 $params['rangeStart'] = gmdate( 'd-m-Y' , strtotime('- '.$params['time'].' '.self::codeAlarmUnit($params['unit']) , (int)($schedulable['startTime'] / 1000)));46 $params['rangeEnd'] = gmdate( 'd-m-Y' ,(int)($schedulable['endTime'] / 1000));66 $params['rangeStart'] = strtotime('- '.$params['time'].' '.self::codeAlarmUnit($params['unit']) , (int)($schedulable['startTime'] / 1000)).'000'; 67 $params['rangeEnd'] = $schedulable['endTime']; 47 68 } 48 69
Note: See TracChangeset
for help on using the changeset viewer.