Class PHPFSPOT_DB

Description

PHPFSPOT_DB class

Located in /phpfspot_db.php (line 29)


	
			
Method Summary
 PHPFSPOT_DB __construct ( $parent,  $db_path)
 void __destruct ()
 true db_check_table_exists ([string, $table_name = ""])
 void db_exec ([ $query = ""])
 void db_fetchSingleRow ([ $query = ""])
 void db_fetch_object ( $resource)
 void db_getNumRows ([ $query = ""])
 void db_query ([ $query = ""])
Methods
Constructor __construct (line 43)

PHPFSPOT_DB class constructor

This constructor initially connect to the database.

  • access: public
PHPFSPOT_DB __construct ( $parent,  $db_path)
  • $parent
  • $db_path
Destructor __destruct (line 63)

PHPFSPOT_DB class deconstructor

This destructor will close the current database connection.

  • access: public
void __destruct ()
db_check_table_exists (line 253)

PHPFSPOT_DB check table exists

This function checks if the given table exists in the database

  • return: if table found otherwise false
  • access: public
true db_check_table_exists ([string, $table_name = ""])
  • string, $table_name: table name
db_exec (line 163)

PHPFSPOT_DB database query & execute

This function will execute a SQL query and return nothing.

  • access: public
void db_exec ([ $query = ""])
  • $query
db_fetchSingleRow (line 206)

PHPFSPOT_DB fetch ONE row

This function will execute the given but only return the first result.

  • access: public
void db_fetchSingleRow ([ $query = ""])
  • $query
db_fetch_object (line 189)
  • access: public
void db_fetch_object ( $resource)
  • $resource
db_getNumRows (line 232)

PHPFSPOT_DB number of affected rows

This functions returns the number of affected rows but the given SQL query.

  • access: public
void db_getNumRows ([ $query = ""])
  • $query
db_query (line 127)

PHPFSPOT_DB database query

This function will execute a SQL query and return the result as object.

  • access: public
void db_query ([ $query = ""])
  • $query

Documentation generated on Sat, 12 Apr 2008 18:25:06 +0200 by phpDocumentor 1.4.2