Revision 7419,
374 bytes
checked in by alexandrecorreia, 12 years ago
(diff) |
Ticket #3093 - Integração da API REST, diretório adapters e utils.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | class 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.