mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Anpassungen an neue Datenbankklasse
This commit is contained in:
+21
-8
@@ -30,17 +30,30 @@ class basis_db extends db
|
||||
}
|
||||
}
|
||||
|
||||
function db_num_rows()
|
||||
{
|
||||
return pg_num_rows($this->db_result);
|
||||
}
|
||||
|
||||
function db_fetch_object($result = null)
|
||||
function db_num_rows($result=null)
|
||||
{
|
||||
if(is_null($result))
|
||||
return pg_fetch_object($this->db_result);
|
||||
return pg_num_rows($this->db_result);
|
||||
else
|
||||
return pg_num_rows($result);
|
||||
}
|
||||
|
||||
function db_fetch_object($result = null, $i=null)
|
||||
{
|
||||
if(is_null($result))
|
||||
{
|
||||
if(is_null($i))
|
||||
return pg_fetch_object($this->db_result);
|
||||
else
|
||||
return pg_fetch_object($this->db_result, $i);
|
||||
}
|
||||
else
|
||||
return pg_fetch_object($result);
|
||||
{
|
||||
if(is_null($i))
|
||||
return pg_fetch_object($result);
|
||||
else
|
||||
return pg_fetch_object($result, $i);
|
||||
}
|
||||
}
|
||||
|
||||
function db_last_error()
|
||||
|
||||
Reference in New Issue
Block a user