Revision 7443,
374 bytes
checked in by eduardow, 12 years ago
(diff) |
Ticket #3093 - Integração da API REST, diretório adapters e utils.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[7443] | 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.