UpdateDiamonds

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.

Methods

__construct

__construct($user, $pass) 

Arguments

$user

$pass

set_vender

set_vender($v) 

Arguments

$v

set_username

set_username($user) 

Arguments

$user

set_password

set_password($pass) 

Arguments

$pass

set_download_loc

set_download_loc($loc) 

Arguments

$loc

debug_mode

debug_mode($on = true) 

Arguments

$on

check_tables_exist

check_tables_exist($create_tables = true) 

Arguments

$create_tables

create_diamonds_fields_table

create_diamonds_fields_table() 

create_diamonds_keys_table

create_diamonds_keys_table() 

create_diamonds_table

create_diamonds_table() 

fill_keys

fill_keys() 

update_diamonds

update_diamonds() 

fetch

fetch() 
abstract

parse

parse($diamonds) 
abstract

Arguments

$diamonds

drop

drop($vendor) 
abstract

Arguments

$vendor

insert

insert($diamonds) 
abstract

Arguments

$diamonds

Properties

download_loc

download_loc

username

username

password

password

vendor

vendor

diamonds

diamonds

keys

keys

field_map

field_map

prof

prof

debug

debug


                                
inherited