This abscract class is to provide recommended methodes for connecting to the given provider.
Please skimit and take not of UpdateDiamonds::update_diamonds(). That is the mos important call. The websites update/cron script should consist of calling init.php, instanciating an implimentation of this class, and calling update_diamonds(). All other work should be done with the class.
There is an optional function named UpdateDiamonds::debug_mode(). Call it to see profile times.
__construct($user, $pass)
set_vender($v)
set_username($user)
set_password($pass)
set_download_loc($loc)
debug_mode($on = true)
check_tables_exist($create_tables = true)
create_diamonds_fields_table()
create_diamonds_keys_table()
create_diamonds_table()
fill_keys()
update_diamonds()
fetch()
parse($diamonds)
drop($vendor)
insert($diamonds)
download_loc
username
password
vendor
diamonds
keys
field_map
prof
debug