Public Member Functions | |
| Document ($p_cn, $p_d_id=0) | |
| Generate () | |
| Generate the document, Call $this->Replace to replace tag by value. | |
| ParseDocument ($p_dir, $p_file) | |
| This function parse a document and replace all the predefined tags by a value. This functions generate diffent documents (invoice, order, letter) with the info from the database. | |
| SaveGenerated ($p_file) | |
| Save the generated Document. | |
| Upload () | |
| Upload a file into document all the needed data are in $_FILES we don't increment the seq. | |
| a_ref () | |
| create and compute a string for reference the doc <A ...> | |
| Get () | |
| Replace ($p_tag) | |
replace the TAG by the real value, this value can be into the database or in $_POST The possible tags are
| |
| remove () | |
| remove a row from the table document, the lob object is not deleted because can be linked elsewhere | |
| MoveDocumentPj ($p_internal) | |
| Move a document from the table document into the concerned row the document is not copied : it is only a link. | |
Data Fields | |
| $db | |
| $ag_id | |
| $d_mimetype | |
| $d_filename | |
| $d_lob | |
| $d_number | |
| $md_id | |
Definition at line 27 of file class_document.php.
|
||||||||||||
|
Definition at line 40 of file class_document.php. Referenced by SaveGenerated(). |
|
|
create and compute a string for reference the doc <A ...> a_ref
Definition at line 284 of file class_document.php. References $r. |
|
|
Generate the document, Call $this->Replace to replace tag by value.
Definition at line 55 of file class_document.php. References $Res, $ret, $row, Commit(), echo_debug(), ExecSql(), NextSequence(), ParseDocument(), SaveGenerated(), and StartSql(). |
|
|
Definition at line 295 of file class_document.php. References $file, $ret, $row, $tmp, Commit(), ExecSql(), and StartSql(). |
|
|
Move a document from the table document into the concerned row the document is not copied : it is only a link.
Definition at line 602 of file class_document.php. |
|
||||||||||||
|
This function parse a document and replace all the predefined tags by a value. This functions generate diffent documents (invoice, order, letter) with the info from the database. ParseDocument
Definition at line 125 of file class_document.php. References $h, echo_debug(), exit, Replace(), and value. Referenced by Generate(). |
|
|
remove a row from the table document, the lob object is not deleted because can be linked elsewhere
Definition at line 591 of file class_document.php. |
|
|
replace the TAG by the real value, this value can be into the database or in $_POST The possible tags are
Definition at line 363 of file class_document.php. References $my, $qcode, $r, ag_date, break, fiche, GetTvaRate(), MY_COMMUNE, MY_CP, MY_NAME, MY_NUMBER, MY_STREET, MY_TVA, and qcode. Referenced by ParseDocument(). |
|
|
Save the generated Document. SaveGenerated
Definition at line 200 of file class_document.php. References $doc, $sql, Commit(), Document(), echo_debug(), ExecSql(), GetSequence(), Rollback(), and StartSql(). Referenced by Generate(). |
|
|
Upload a file into document all the needed data are in $_FILES we don't increment the seq. Upload
Definition at line 231 of file class_document.php. References $old_oid, $r, $ret, $sql, Commit(), ExecSql(), name, Rollback(), and StartSql(). |
|
|
action_gestion.ag_id (pk) Definition at line 31 of file class_document.php. |
|
|
Definition at line 33 of file class_document.php. |
|
|
the oid of the lob Definition at line 34 of file class_document.php. |
|
|
Definition at line 32 of file class_document.php. |
|
|
number of the document Definition at line 35 of file class_document.php. |
|
|
Database connexion var $d_id; /*! Definition at line 29 of file class_document.php. |
|
|
document's template Definition at line 36 of file class_document.php. |
1.4.4