source: sandbox/2.4.3-expresso-rest/prototype/adapters/CalendarAdapter.php @ 7316

Revision 7316, 374 bytes checked in by alexandrecorreia, 9 years ago (diff)

Ticket #3093 - Integração da API REST, diretório adapters.

  • Property svn:executable set to *
Line 
1<?php
2
3class CalendarAdapter extends ExpressoAdapter {
4        public function __construct($id){
5                parent::__construct($id);
6        }
7
8        protected function getUserId(){
9                return $GLOBALS['phpgw_info']['user']['account_id'];
10        }
11
12        protected function getDb(){
13                return $GLOBALS['phpgw']->db;
14        }
15
16        protected function getTimezoneOffset(){
17                return $GLOBALS['phpgw']->datetime->tz_offset;
18        }
19}
Note: See TracBrowser for help on using the repository browser.