Class productfuncs_db

Description

Class to manage the database's product related part.

The main rules are:

  • one data request -> one SQL query
  • one database modification -> one SQL query
I won't describe the methods, every has a descriptive name.

Located in /lib/php/productfuncs_db.php (line 27)


	
			
Variable Summary
mixed $connection
Method Summary
productfuncs_db productfuncs_db ()
void close ()
void getCreatedProductAmount (mixed $countryID, mixed $product)
void getCurentRound ()
void getMaximumAmountInStorage (mixed $countryID, mixed $product)
void getPercentInStorage (mixed $countryID, mixed $product)
void getProductAmount (mixed $countryID, mixed $product)
void tryToSetStorage (mixed $storageSetupAssoc, mixed $countryID)
Variables
mixed $connection (line 29)
Methods
Constructor productfuncs_db (line 31)
productfuncs_db productfuncs_db ()
close (line 37)
void close ()
getAutoProducList (line 79)
void getAutoProducList ()
getCreatedProductAmount (line 55)
void getCreatedProductAmount (mixed $countryID, mixed $product)
getCurentRound (line 45)
void getCurentRound ()
getMaximumAmountInStorage (line 102)

gets the maximum amount of the $product in $scountryid's storage

void getMaximumAmountInStorage (mixed $countryID, mixed $product)
getPercentInStorage (line 123)

gets the percentage in storage of the $product in $scountryid's storage

void getPercentInStorage (mixed $countryID, mixed $product)
getProductAmount (line 66)
void getProductAmount (mixed $countryID, mixed $product)
tryToSetStorage (line 132)
void tryToSetStorage (mixed $storageSetupAssoc, mixed $countryID)

Documentation generated on Mon, 21 Mar 2005 22:45:35 +0100 by phpDocumentor 1.3.0RC3