noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
Class for the document template. More...
Public Member Functions | |
__construct ($p_cn, $p_id=-1) | |
Delete () | |
Remove a template. | |
form () | |
show the form for loading a template | |
load () | |
load the value of a document_modele,the ag_id variable must be set | |
move_uploaded_file ($temporary_name, $target_path) | |
myList () | |
: show all the stored document_modele. return a string containing all the data separate by TD & TR tag | |
Save () | |
: Save a document_modele in the database, if the document_modele doesn't exist yet it will be first created (-> insert into document_modele) in that case the name and the type must be set set before calling Save, the name will be modified with sql_string | |
update ($p_array) | |
: update a document_modele in the database, | |
Data Fields | |
$cn | |
$md_affect | |
$md_filename | |
$md_id | |
$md_lob | |
$md_mimetype | |
$md_name | |
$md_sequence | |
$md_type | |
$sequence | |
$start | |
Class for the document template.
Definition at line 26 of file document_modele.class.php.
Document_Modele::__construct | ( | $p_cn, | |
$p_id = -1 ) |
Definition at line 40 of file document_modele.class.php.
Document_Modele::Delete | ( | ) |
Remove a template.
Definition at line 213 of file document_modele.class.php.
References $r, $res, $sql, cn, and DatabaseCore\fetch_array().
Document_Modele::form | ( | ) |
show the form for loading a template
p_action | for the field action = destination url |
Definition at line 239 of file document_modele.class.php.
References $f, $r, $start, $t, $w, _, cn, and td().
Document_Modele::load | ( | ) |
load the value of a document_modele,the ag_id variable must be set
Definition at line 302 of file document_modele.class.php.
References $array, $idx, and cn.
Referenced by update().
Document_Modele::move_uploaded_file | ( | $temporary_name, | |
$target_path ) |
Definition at line 205 of file document_modele.class.php.
References move_uploaded_file().
Referenced by move_uploaded_file(), Save(), and update().
Document_Modele::myList | ( | ) |
: show all the stored document_modele. return a string containing all the data separate by TD & TR tag
Definition at line 54 of file document_modele.class.php.
References $a, $all, $b, $c, $href, $idx, $r, $Res, $row, $sql, _, cn, DatabaseCore\fetch_all(), h, h2(), Icon_Action\modify(), DatabaseCore\num_row(), td(), and th().
Document_Modele::Save | ( | ) |
: Save a document_modele in the database, if the document_modele doesn't exist yet it will be first created (-> insert into document_modele) in that case the name and the type must be set set before calling Save, the name will be modified with sql_string
Definition at line 128 of file document_modele.class.php.
References $e, $new_name, $r, $ret, $sql, $start, cn, echo_error(), DatabaseCore\fetch_array(), isNumber(), move_uploaded_file(), DatabaseCore\num_row(), record_log(), and return.
Document_Modele::update | ( | $p_array | ) |
: update a document_modele in the database,
Definition at line 315 of file document_modele.class.php.
References $e, $new_name, $p_array, $r, $ret, $sql, cn, echo_error(), DatabaseCore\fetch_array(), load(), move_uploaded_file(), DatabaseCore\num_row(), record_log(), and return.
Document_Modele::$cn |
$cn database connection
Definition at line 28 of file document_modele.class.php.
Document_Modele::$md_affect |
$md_affect if you can use it in VEN for sale, ACH for purchase or GES for follow-up
Definition at line 35 of file document_modele.class.php.
Document_Modele::$md_filename |
$md_filename is the filename of the template
Definition at line 36 of file document_modele.class.php.
Document_Modele::$md_id |
$md_id pk
Definition at line 29 of file document_modele.class.php.
Document_Modele::$md_lob |
$md_lob Document file
Definition at line 32 of file document_modele.class.php.
Document_Modele::$md_mimetype |
$md_mimetype is the mimetype of the LOB
Definition at line 38 of file document_modele.class.php.
Document_Modele::$md_name |
$md_name template's name
Definition at line 30 of file document_modele.class.php.
Document_Modele::$md_sequence |
$md_sequence sequence name (autogenerate)
Definition at line 33 of file document_modele.class.php.
Document_Modele::$md_type |
$md_type template's type (letter, invoice, order...)
Definition at line 31 of file document_modele.class.php.
Document_Modele::$sequence |
$sequence sequence number used by the create sequence start with
Definition at line 34 of file document_modele.class.php.
Document_Modele::$start |
$md_filename is the filename of the template
Definition at line 37 of file document_modele.class.php.