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