noalyss Version-9
|
Class for the document template. More...
Public Member Functions | |
__construct ($p_cn, $p_id=-1) | |
Delete () | |
Remove a template. More... | |
form () | |
show the form for loading a template More... | |
load () | |
load the value of a document_modele,the ag_id variable must be set More... | |
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 More... | |
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 More... | |
update ($p_array) | |
: update a document_modele in the database, More... | |
Data Fields | |
$cn | |
$md_affect | |
$md_filename | |
$md_id | |
$md_lob | |
$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 |
|||
) |
< $md_filename is the filename of the template
Definition at line 39 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, $w, HtmlInput\button_hide(), cn, HtmlInput\hidden(), HtmlInput\submit(), 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 53 of file document_modele.class.php.
References $a, $all, $b, $href, $idx, $r, $Res, $row, $sql, cn, HtmlInput\detail_modele_document(), DatabaseCore\fetch_all(), HtmlInput\filter_table(), h, h2(), id, DatabaseCore\num_row(), HtmlInput\submit(), 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 |
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_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.