Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

action Class Reference

class_action for manipulating actions action can be : More...


Public Member Functions

 action ($p_cn)
 constructor
 Display ()
 Display the object.
 Confirm ()
 Display the encoded data and ask a confirmation this correspond to the stage 1, before the generation or the upload of document.
 SaveStage2 ()
 Save the document and propose to save the generated document or to upload one, the data are included except the file. Temporary the generated document is save.
 SaveStage3 ($d_id)
 Upload the document or save the generated document.
 myList ($p_filter="", $p_search="")
 Show list of action.

Data Fields

 $db
 $ag_desc
 $ag_date
 $d_lob
 $dt_id
 $d_state
 $d_number
 $d_filename
 $d_mimetype
 $ag_title
 $f_id


Detailed Description

class_action for manipulating actions action can be :

The table document_type are the possible actions

Definition at line 47 of file class_action.php.


Constructor & Destructor Documentation

action::action p_cn  ) 
 

constructor

constructor

Parameters:
p_cn database connection

Definition at line 75 of file class_action.php.

References f_id.


Member Function Documentation

action::Confirm  ) 
 

Display the encoded data and ask a confirmation this correspond to the stage 1, before the generation or the upload of document.

Confirm

Returns:
string containing the form

Definition at line 151 of file class_action.php.

References $a, $desc, $doc_type, $h_url, $r, $retour, $title, ag_date, ag_desc, d_state, dt_id, ExecSql(), fiche, FormatString(), isDate(), make_array(), name, and value.

action::Display  ) 
 

Display the object.

Display

Returns:
string containing the html code

Definition at line 85 of file class_action.php.

References $a, $desc, $doc_type, $r, $title, ag_date, ag_desc, d_state, dt_id, ExecSql(), fiche, FormatString(), and make_array().

Referenced by SaveStage2().

action::myList p_filter = "",
p_search = ""
 

Show list of action.

myList($p_filter="")

Parameters:
$p_filter filters on the document_type
$p_search must a valid sql command ( ex 'and ag_title like upper('hjkh'))
Returns:
string containing html code

Definition at line 329 of file class_action.php.

References $_SESSION, $bar, $doc, $limit, $offset, $page, $r, $Res, $row, $sql, $step, ag_title, CountSql(), ExecSql(), f_id, fiche, and jrn_navigation_bar().

action::SaveStage2  ) 
 

Save the document and propose to save the generated document or to upload one, the data are included except the file. Temporary the generated document is save.

SaveStage2

Returns:

Definition at line 241 of file class_action.php.

References $doc, $r, $sql, $str_file, ag_id, ag_title, Display(), dt_id, echo_debug(), ExecSql(), fiche, FormatString(), GetSequence(), md_id, name, and value.

action::SaveStage3 d_id  ) 
 

Upload the document or save the generated document.

SaveStage3

Parameters:
$d_id document_id when we upload we don't increment seq. if = 0 then no file

Definition at line 306 of file class_action.php.

References $d_id, and $doc.


Field Documentation

action::$ag_date
 

document date (ag_gestion.ag_date)

Definition at line 62 of file class_action.php.

action::$ag_desc
 

description (ag_gestion.ag_desc)

Definition at line 61 of file class_action.php.

action::$ag_title
 

title document

Definition at line 69 of file class_action.php.

action::$d_filename
 

filename's document

Definition at line 67 of file class_action.php.

action::$d_lob
 

Definition at line 63 of file class_action.php.

action::$d_mimetype
 

document's filename

Definition at line 68 of file class_action.php.

action::$d_number
 

number of the document

Definition at line 66 of file class_action.php.

action::$d_state
 

stage of the document (printed, send to client...)

Definition at line 65 of file class_action.php.

action::$db
 

database connexion

Definition at line 60 of file class_action.php.

action::$dt_id
 

type of the document (document_type.dt_id)

Definition at line 64 of file class_action.php.

action::$f_id
 

fiche id

Definition at line 70 of file class_action.php.


The documentation for this class was generated from the following file:
Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4