Used by all Import CSV Operation , contains the setting (delimiter,thousand ...) More...
Public Member Functions | |
__construct () | |
input_format () | |
Display a form to upload a CSV file with operation. More... | |
set_import ($p_file_id) | |
set_setting () | |
Get value from post , fill up the Impacc_Import_csv_SQL object. More... | |
check_setting () | |
check (Impacc_File $p_file) | |
Check that upload file is correct. More... | |
save_setting () | |
Save the Impacc_Import_csv_SQL object into db. More... | |
load_import ($p_import_id) | |
Thank the import_file.id we find the corresponding record from import_csv and we load id. More... | |
make_csv_class ($p_import_id) | |
Create the right object for the import id and throw and exception if the ledger type can not be found. More... | |
record (Impacc_File $p_file) | |
Record the given csv file into impacc.import_detail , depending of the ledger type a different filter is used to import rows. More... | |
result (Impacc_File $importfile) | |
Display result from the table import_detail for CSV import. More... | |
transfer () | |
Transfer the operation to the right ledger. More... | |
Data Fields | |
$detail | |
Object Impacc_Import_csv_SQL. More... | |
$errcode | |
Array of error code will be recorded in import_detail.id_message. More... | |
Used by all Import CSV Operation , contains the setting (delimiter,thousand ...)
Definition at line 29 of file class_impacc_csv.php.
Impacc_CSV::__construct | ( | ) |
Impacc_CSV::check | ( | Impacc_File | $p_file | ) |
Check that upload file is correct.
Definition at line 136 of file class_impacc_csv.php.
References $aformat_date, $array, $cn, $date_format, $ledger, $per, $sql, Impacc_Csv_Sale_Purchase\check(), Impacc_Verify\check_card(), Impacc_Tool\convert_amount(), and load_import().
Impacc_CSV::check_setting | ( | ) |
Definition at line 124 of file class_impacc_csv.php.
Impacc_CSV::input_format | ( | ) |
Display a form to upload a CSV file with operation.
Definition at line 60 of file class_impacc_csv.php.
References $adecimal, $aformat_date, $aseparator, $athousand, $cn, and $ledger.
Impacc_CSV::load_import | ( | $p_import_id | ) |
Thank the import_file.id we find the corresponding record from import_csv and we load id.
$p_import_id | is impacc.import_file.id |
Definition at line 347 of file class_impacc_csv.php.
Referenced by check(), and make_csv_class().
Impacc_CSV::make_csv_class | ( | $p_import_id | ) |
Create the right object for the import id and throw and exception if the ledger type can not be found.
Definition at line 366 of file class_impacc_csv.php.
References $cn, $errcode, $ledger, $obj, and load_import().
Referenced by record(), result(), and transfer().
Impacc_CSV::record | ( | Impacc_File | $p_file | ) |
Record the given csv file into impacc.import_detail , depending of the ledger type a different filter is used to import rows.
$p_file | is an Impacc_File , use to open the temporary file |
Definition at line 396 of file class_impacc_csv.php.
References make_csv_class().
Impacc_CSV::result | ( | Impacc_File | $importfile | ) |
Display result from the table import_detail for CSV import.
$importfile | is an Impacc_File object |
Definition at line 413 of file class_impacc_csv.php.
References $cn, $ret, and make_csv_class().
Impacc_CSV::save_setting | ( | ) |
Save the Impacc_Import_csv_SQL object into db.
Definition at line 339 of file class_impacc_csv.php.
Impacc_CSV::set_import | ( | $p_file_id | ) |
Definition at line 99 of file class_impacc_csv.php.
Impacc_CSV::set_setting | ( | ) |
Get value from post , fill up the Impacc_Import_csv_SQL object.
Definition at line 108 of file class_impacc_csv.php.
Impacc_CSV::transfer | ( | ) |
Transfer the operation to the right ledger.
Definition at line 434 of file class_impacc_csv.php.
References $array, $cn, $ledger, $sql, Impacc_Tool\ledger_factory(), and make_csv_class().
Impacc_CSV::$detail |
Object Impacc_Import_csv_SQL.
Definition at line 32 of file class_impacc_csv.php.
Impacc_CSV::$errcode |
Array of error code will be recorded in import_detail.id_message.
Definition at line 33 of file class_impacc_csv.php.
Referenced by make_csv_class().