IShowcaseLogs

Methods

__construct

__construct($init, $debug = false) 

Arguments

$init

$debug

connect_MONGO

connect_MONGO($config) 

Arguments

$config

connect_SQL

connect_SQL($config) 

Arguments

$config

get_current_log

get_current_log($config) 

Arguments

$config

get_current_log_static

get_current_log_static() 
static

get_current_log_location_static

get_current_log_location_static() 
static

unset_session_vars

unset_session_vars() 

log_product

log_product($subject, $value, $guid, $brand_id) 

Arguments

$subject

$value

$guid

$brand_id

log_click

log_click($subject, $value, $guid, $brand_id) 

Arguments

$subject

$value

$guid

$brand_id

log_submit

log_submit($subject, $value, $guid, $brand_id) 

Arguments

$subject

$value

$guid

$brand_id

log_access

log_access($subject, $value, $guid, $brand_id) 

Arguments

$subject

$value

$guid

$brand_id

log_display

log_display($subject, $value, $guid, $brand_id) 

Arguments

$subject

$value

$guid

$brand_id

log_select

log_select($subject, $value, $guid, $brand_id) 

Arguments

$subject

$value

$guid

$brand_id

log_download

log_download() 

log_general_static

log_general_static($type, $subject, $value, $guid, $brand_id, $time = NULL, $http_head = NULL) 
static

Arguments

$type

$subject

$value

$guid

$brand_id

$time

$http_head

log_general

log_general($type, $subject, $value, $guid, $brand_id, $time = NULL, $http_head = NULL) 

Arguments

$type

$subject

$value

$guid

$brand_id

$time

$http_head

log_manually

log_manually($line) 

Arguments

$line

add_log_line

add_log_line($str, $fileLoc = NULL) 
static

Arguments

$str

$fileLoc

sqlDate

sqlDate($time = NULL) 

Arguments

$time

mongoDate

mongoDate($time = NULL) 

Arguments

$time

get_time

get_time($time = NULL) 

Arguments

$time

generate_jquery

generate_jquery($type, $subject, $value, $brand_id, $guid) 
static

Arguments

$type

$subject

$value

$brand_id

$guid

auto_upload_data

auto_upload_data() 

get_files_to_upload

get_files_to_upload($lastFile, $allFiles) 

Arguments

$lastFile

$allFiles

get_all_files

get_all_files($loc) 

Arguments

$loc

get_last_uploaded_file

get_last_uploaded_file($loc) 

Arguments

$loc

csv_to_array

csv_to_array($folder, $loc, $check_for_download = false) 

Arguments

$folder

$loc

$check_for_download

combine_headers

combine_headers($array) 

Arguments

$array

update_last_uploaded_file

update_last_uploaded_file($folder, $loc) 

Arguments

$folder

$loc

upload_to_db

upload_to_db($totalCSV) 

Arguments

$totalCSV

upload_SQL

upload_SQL($totalCSV) 

Arguments

$totalCSV

upload_MONGO

upload_MONGO($totalCSV) 

Arguments

$totalCSV

log_elapsed_times

log_elapsed_times($title, $start, $end) 

Arguments

$title

$start

$end

debug

debug() 

clean_old_logs

clean_old_logs($days = 2) 

Arguments

$days

files_to_remove

files_to_remove($all_files, $days = 2) 

Arguments

$all_files

$days

remove_files

remove_files($files, $loc) 

Arguments

$files

$loc

Properties

initSrvs

initSrvs

mongoConn

mongoConn

mongodB

mongodB

mongoColl

mongoColl

SQL

SQL

sqlTable

sqlTable

logLoc

logLoc

current_LOG

current_LOG

debug

debug