Changeset 7465 for sandbox/webservice/api/adapters/CalendarAdapter.php
- Timestamp:
- 10/25/12 13:53:50 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/webservice/api/adapters/CalendarAdapter.php
r6423 r7465 16 16 protected function getTimezoneOffset(){ 17 17 return $GLOBALS['phpgw']->datetime->tz_offset; 18 19 } 20 21 protected function getEvents( $month, $year ) 22 { 23 $bo = CreateObject('calendar.bocalendar',1); 24 25 $events = $bo->store_to_cache( 26 Array( 27 'syear' => $year, 28 'smonth'=> $month, 29 'sday' => 1 30 ) 31 ); 32 33 return $events; 34 } 35 36 protected function makeTime($event) 37 { 38 $bo = CreateObject('calendar.bocalendar',1); 39 40 return $bo->maketime($event); 18 41 } 19 42 }
Note: See TracChangeset
for help on using the changeset viewer.