UpdateRapNet

Extends \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

fetch

fetch() 

parse

parse($diamonds) 

Arguments

$diamonds

drop

drop($vendor) 

Arguments

$vendor

insert

insert($diamonds) 

Arguments

$diamonds

fetch_part

fetch_part($request, $input_type = 'array') 

Arguments

$request

$input_type

parse_field_map

parse_field_map($diamonds) 

Arguments

$diamonds

parse_has_cert

parse_has_cert($diamonds) 

Arguments

$diamonds

parse_calc_ppc

parse_calc_ppc($diamonds) 

Arguments

$diamonds

parse_add_vendor

parse_add_vendor($diamonds) 

Arguments

$diamonds

set_vender

set_vender($v) 
inherited

Arguments

$v

set_username

set_username($user) 
inherited

Arguments

$user

set_password

set_password($pass) 
inherited

Arguments

$pass

set_download_loc

set_download_loc($loc) 
inherited

Arguments

$loc

debug_mode

debug_mode($on = true) 
inherited

Arguments

$on

check_tables_exist

check_tables_exist($create_tables = true) 
inherited

Arguments

$create_tables

create_diamonds_fields_table

create_diamonds_fields_table() 
inherited

create_diamonds_keys_table

create_diamonds_keys_table() 
inherited

create_diamonds_table

create_diamonds_table() 
inherited

fill_keys

fill_keys() 
inherited

update_diamonds

update_diamonds() 
inherited

Properties

download_loc

download_loc

field_map

field_map

cert_loc

cert_loc

username

username
inherited

password

password
inherited

vendor

vendor
inherited

diamonds

diamonds
inherited

keys

keys
inherited

prof

prof
inherited

debug

debug
inherited