|
noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
Export DOCUMENT from Analytic accountancy, can transform into PDF and add a stamp on each pages. More...
Collaboration diagram for Document_Export:Public Member Functions | |
| __construct () | |
| create 2 temporary folders, store_pdf and store_convert, initialize an array feedback containing messages | |
| check_file () | |
| check that the files are installed throw a exception if one is missing | |
| clean_folder () | |
| remove folder and its content | |
| concatenate_pdf () | |
| concatenate all PDF into a single one and save it into the store_pdf folder. | |
| export_all ($p_array, Progress_Bar $progress, $p_separate=1, $reconcilied_document=2) | |
| export all the pieces in PDF and transform them into a PDF with a stamp. | |
| export_receipt ($p_jrn_id, Progress_Bar $progress, $step) | |
| export a file ( | |
| make_zip () | |
| Make a zip file. | |
| move_file ($p_source, $p_target) | |
| copy the file | |
| reorder_array ($p_array) | |
| Order the array with the date. | |
| send_pdf () | |
| send the resulting PDF to the browser | |
| send_zip () | |
| send the resulting PDF to the browser | |
Data Fields | |
| $feedback | |
| $progress | |
| $store_convert | |
| $store_pdf | |
Export DOCUMENT from Analytic accountancy, can transform into PDF and add a stamp on each pages.
It depends on PDFTK and CONVERT_GIF_PDF
Definition at line 27 of file document_export.class.php.
| Document_Export::__construct | ( | ) |
create 2 temporary folders, store_pdf and store_convert, initialize an array feedback containing messages
Definition at line 38 of file document_export.class.php.
| Document_Export::check_file | ( | ) |
check that the files are installed throw a exception if one is missing
Definition at line 308 of file document_export.class.php.
References $ex, _, PDF2PS, and PS2PDF.
Referenced by concatenate_pdf(), export_all(), and move_file().
| Document_Export::clean_folder | ( | ) |
remove folder and its content
Definition at line 153 of file document_export.class.php.
References $i.
| Document_Export::concatenate_pdf | ( | ) |
concatenate all PDF into a single one and save it into the store_pdf folder.
If an error occurs then it is added to feedback
Definition at line 59 of file document_export.class.php.
References $status, and check_file().
Referenced by export_all().
Here is the call graph for this function:| Document_Export::export_all | ( | $p_array, | |
| Progress_Bar | $progress, | ||
| $p_separate = 1, | |||
| $reconcilied_document = 2 ) |
export all the pieces in PDF and transform them into a PDF with a stamp.
If an error occurs then $this->feedback won't be empty
| $p_array | contents all the jr_id | |
| Progress_Bar | $progress | is the progress bar |
| int | $p_separate | 1 everything in a single PDF or a ZIP with all PDF |
| int | $reconcilied_operation | 1 with receipt of reconcilied operation 2 without them |
Definition at line 179 of file document_export.class.php.
References $cn, $op, $order, $output, $p_array, $progress, $reconcilied_document, $status, $step, $value, _, check_file(), concatenate_pdf(), export_receipt(), make_zip(), move_file(), reorder_array(), send_pdf(), send_zip(), and Progress_Bar\set_value().
Here is the call graph for this function:| Document_Export::export_receipt | ( | $p_jrn_id, | |
| Progress_Bar | $progress, | ||
| $step ) |
export a file (
| type | $p_jrn_id | |
| $progress |
Definition at line 330 of file document_export.class.php.
References $cn, $ext, $file, $img, $output, $progress, $receipt, $status, $step, _, clean_filename(), noalyss_str_replace(), PDF2PS, and PS2PDF.
Referenced by export_all().
Here is the call graph for this function:| Document_Export::make_zip | ( | ) |
Make a zip file.
Definition at line 89 of file document_export.class.php.
References $res, and record_log().
Referenced by export_all().
Here is the call graph for this function:| Document_Export::move_file | ( | $p_source, | |
| $p_target ) |
copy the file
| $p_source | |
| $target |
| Exception |
Definition at line 116 of file document_export.class.php.
References $i, $target, and check_file().
Referenced by export_all().
Here is the call graph for this function:| Document_Export::reorder_array | ( | $p_array | ) |
Order the array with the date.
| array | $p_array | array of jrn.jr_id |
Definition at line 465 of file document_export.class.php.
References $array, $cn, and $p_array.
Referenced by export_all().
| Document_Export::send_pdf | ( | ) |
send the resulting PDF to the browser
Definition at line 131 of file document_export.class.php.
Referenced by export_all().
| Document_Export::send_zip | ( | ) |
send the resulting PDF to the browser
Definition at line 142 of file document_export.class.php.
Referenced by export_all().
| Document_Export::$feedback |
contains feedback
Definition at line 29 of file document_export.class.php.
| Document_Export::$progress |
contain value for progressbar
Definition at line 32 of file document_export.class.php.
Referenced by export_all(), and export_receipt().
| Document_Export::$store_convert |
temporary folder for files
Definition at line 30 of file document_export.class.php.
| Document_Export::$store_pdf |
temporary folder for PDF
Definition at line 31 of file document_export.class.php.