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)
fetch()
parse($diamonds)
drop($vendor)
insert($diamonds)
fetch_part($request, $input_type = 'array')
parse_field_map($diamonds)
parse_has_cert($diamonds)
parse_calc_ppc($diamonds)
parse_add_vendor($diamonds)
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()
download_loc
field_map
cert_loc
username
password
vendor
diamonds
keys
prof
debug