source: trunk/filemanager/inc/class.sofilemanager.inc.php @ 2000

Revision 2000, 757 bytes checked in by amuller, 14 years ago (diff)

Ticket #597 - Implementação do módulo gerenciador de arquivos

  • Property svn:executable set to *
Line 
1<?php
2
3        class sofilemanager
4        {
5                var $db;
6
7                function sofilemanager()
8                {
9                        $this->db = $GLOBALS['phpgw']->db;
10                }
11
12                /* Any initializations that need to be done */
13                function db_init ()
14                {
15                        $this->db->Auto_Free = 0;
16                }
17
18                /* General SQL query */
19                function db_query ($query)
20                {
21
22                        return $this->db->query ($query);
23                }
24
25                /* Fetch next array for $query_id */
26                function db_fetch_array ($query_id)
27                {
28
29                        //      $phpgw->db->Query_ID = $query_id;
30                        $this->db->next_record ();
31                        return $this->db->Record;
32                }
33
34                /*
35                General wrapper for all other db calls
36                Calls in here are simply returned, so not all will work
37                */
38                function db_call ($function, $query_id)
39                {
40
41                        //      $phpgw->db->Query_ID = $query_id;
42                        return $this->db->$function ();
43                }
44
45
46        }
47?>
Note: See TracBrowser for help on using the repository browser.