Class PHPFSPOT_DB

Description

PHPFSPOT_DB class

Located in /phpfspot_db.php (line 30)


	
			
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 44)

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 64)

PHPFSPOT_DB class deconstructor

This destructor will close the current database connection.

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

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 164)

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 207)

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 190)
  • access: public
void db_fetch_object ( $resource)
  • $resource
db_getNumRows (line 233)

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 128)

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:39:54 +0200 by phpDocumentor 1.4.2