Class constructor
void
PolarLoader
(integer $user_id)
-
integer
$user_id: User ID (as in database)
Display HTML table / form to load data files into database
boolean
display_table
(array $files, [integer $year = null])
-
array
$files: Contains information on uploaded files. See gen_files_vs_db_status() for structure.
-
integer
$year: Year displayed, else null
Generate array of data files vs database with status and some data
array
gen_files_vs_db_status
([integer $year = null])
-
integer
$year: Year to consider (all years if null)
Generate array of data files vs database with status and some data
array
get_available_years
()
Display multiple selection row
void
_action_row
()
Get localized strings common to all types of files and return file size
integer
_get_file_strings
(integer $f_ind, array $file, &$type, string &$status, string &$checkbox, array &$sum_file_by_status, array &$sum_file_by_type)
-
integer
$f_ind: Index of file in files array
-
array
$file: File Structure
-
string
&$status: File status
-
string
&$checkbox: Checkbox HTML input
-
array
&$sum_file_by_status: in/out : add file size to status
-
array
&$sum_file_by_type: in/out : add file size to type
-
&$type
Display table header or footer
void
_table_header
()