2001-12-15 05:24:37 +01:00
|
|
|
<?php
|
|
|
|
|
2002-09-21 07:26:43 +02:00
|
|
|
class sofilemanager
|
2001-12-15 05:24:37 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
/* Any initializations that need to be done */
|
2002-09-21 07:26:43 +02:00
|
|
|
function sofilemanager()
|
2001-12-15 05:24:37 +01:00
|
|
|
{
|
|
|
|
$GLOBALS['phpgw']->db->Auto_Free = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* General SQL query */
|
|
|
|
function query($query)
|
|
|
|
{
|
|
|
|
return $GLOBALS['phpgw']->db->query($query);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Fetch next array for $query_id */
|
|
|
|
function fetch_array($query_id)
|
|
|
|
{
|
|
|
|
$GLOBALS['phpgw']->db->next_record ();
|
|
|
|
return $GLOBALS['phpgw']->db->Record;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
General wrapper for all other db calls
|
|
|
|
Calls in here are simply returned, so not all will work
|
|
|
|
*/
|
|
|
|
function call($function, $query_id)
|
|
|
|
{
|
|
|
|
return $GLOBALS['phpgw']->db->$function();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|