Revision 2362,
1.5 KB
checked in by amuller, 15 years ago
(diff) |
Ticket #1008 - Adicionando informações sobre licenças
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[2000] | 1 | <?php |
---|
| 2 | |
---|
[2362] | 3 | /*************************************************************************** |
---|
| 4 | * Expresso Livre * |
---|
| 5 | * http://www.expressolivre.org * |
---|
| 6 | * -------------------------------------------- * |
---|
| 7 | * This program is free software; you can redistribute it and/or modify it * |
---|
| 8 | * under the terms of the GNU General Public License as published by the * |
---|
| 9 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
| 10 | * option) any later version. * |
---|
| 11 | \**************************************************************************/ |
---|
| 12 | |
---|
[2000] | 13 | class sofilemanager |
---|
| 14 | { |
---|
| 15 | var $db; |
---|
| 16 | |
---|
| 17 | function sofilemanager() |
---|
| 18 | { |
---|
| 19 | $this->db = $GLOBALS['phpgw']->db; |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | /* Any initializations that need to be done */ |
---|
| 23 | function db_init () |
---|
| 24 | { |
---|
| 25 | $this->db->Auto_Free = 0; |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | /* General SQL query */ |
---|
| 29 | function db_query ($query) |
---|
| 30 | { |
---|
| 31 | |
---|
| 32 | return $this->db->query ($query); |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | /* Fetch next array for $query_id */ |
---|
| 36 | function db_fetch_array ($query_id) |
---|
| 37 | { |
---|
| 38 | |
---|
| 39 | // $phpgw->db->Query_ID = $query_id; |
---|
| 40 | $this->db->next_record (); |
---|
| 41 | return $this->db->Record; |
---|
| 42 | } |
---|
| 43 | |
---|
| 44 | /* |
---|
| 45 | General wrapper for all other db calls |
---|
| 46 | Calls in here are simply returned, so not all will work |
---|
| 47 | */ |
---|
| 48 | function db_call ($function, $query_id) |
---|
| 49 | { |
---|
| 50 | |
---|
| 51 | // $phpgw->db->Query_ID = $query_id; |
---|
| 52 | return $this->db->$function (); |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | } |
---|
| 57 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.