Public Member Functions | |
__construct ($p_file_id=-1, $p_format_id=-1) | |
create_format_temp ($p_fiche_card) | |
fill the CSV format object Importcard_Format_SQL with default values More... | |
hidden () | |
for the form we have here all the hidden variables More... | |
propose_format () | |
propose different possibilities to use your files More... | |
new_import () | |
show the first screen, More... | |
save_file () | |
Upload the file and record the default format and the file type $cn. More... | |
get_post_format () | |
fill object Importcard_Format_SQL with the data send by post More... | |
test_import () | |
Test the CSV file, show the choosed delimiter, the CSV parsed, and replace column header by attribute. More... | |
record_import () | |
record all rows More... | |
propose_save_template () | |
show_template () | |
Static Public Member Functions | |
static | hidden () |
for the form we have here all the hidden variables More... | |
static | new_import () |
show the first screen, you must here enter the date format the file, the card category, More... | |
static | test_import () |
Test the CSV file, show the choosed delimiter, the CSV parsed, and replace column header by attribute. More... | |
static | record_import () |
record all rows More... | |
Private Attributes | |
$record | |
$format | |
Definition at line 26 of file class_import_card.php.
Import_Card::__construct | ( | $p_file_id = -1 , |
|
$p_format_id = -1 |
|||
) |
Import_Card::create_format_temp | ( | $p_fiche_card | ) |
fill the CSV format object Importcard_Format_SQL with default values
int | $p_fiche_card | if 0 then f_position is empty otherwise , f_position contains the attribute of this card category |
Definition at line 43 of file class_import_card.php.
References $cn.
Referenced by save_file().
Import_Card::get_post_format | ( | ) |
fill object Importcard_Format_SQL with the data send by post
Definition at line 144 of file class_import_card.php.
|
static |
for the form we have here all the hidden variables
Definition at line 34 of file class_import_card.php.
References $r.
Import_Card::hidden | ( | ) |
for the form we have here all the hidden variables
Definition at line 67 of file class_import_card.php.
References $r.
Referenced by new_import(), propose_format(), and save_file().
|
static |
Import_Card::new_import | ( | ) |
show the first screen,
Definition at line 103 of file class_import_card.php.
References $cn, $file, $hidden, $r, and hidden().
Import_Card::propose_format | ( | ) |
propose different possibilities to use your files
Definition at line 77 of file class_import_card.php.
References $cn, $hidden, $r, $skip_row, and hidden().
Import_Card::propose_save_template | ( | ) |
Definition at line 373 of file class_import_card.php.
|
static |
record all rows
Definition at line 112 of file class_import_card.php.
References $array, $cn, $fiche, $g_failed, $g_succeed, $header, $name, $row, and $row_count.
Import_Card::record_import | ( | ) |
record all rows
@return |
if qcode already exists then update otherwise insert
Definition at line 225 of file class_import_card.php.
References $array, $cn, $fiche, $g_failed, $g_succeed, $header, $msg, $name, $row, $row_count, and $skip_row.
Import_Card::save_file | ( | ) |
Upload the file and record the default format and the file type $cn.
Definition at line 122 of file class_import_card.php.
References $cn, $hidden, create_format_temp(), and hidden().
Import_Card::show_template | ( | ) |
Definition at line 377 of file class_import_card.php.
References $cn.
|
static |
Test the CSV file, show the choosed delimiter, the CSV parsed, and replace column header by attribute.
Definition at line 70 of file class_import_card.php.
Import_Card::test_import | ( | ) |
Test the CSV file, show the choosed delimiter, the CSV parsed, and replace column header by attribute.
Definition at line 174 of file class_import_card.php.
References $cn, $header, $skip_row, and $sql.
|
private |
Definition at line 29 of file class_import_card.php.
|
private |
Definition at line 28 of file class_import_card.php.