noalyss Version-9
Public Member Functions | Static Public Member Functions | Private Attributes
Status_Operation_Event Class Reference
+ Collaboration diagram for Status_Operation_Event:

Public Member Functions

 __construct (Database $cn)
 
 __toString ()
 
 display ($p_what)
 display what it is asked More...
 
 display_event ($p_title, $p_array, $p_what)
 
 display_operation ($p_title, $p_array, $p_what)
 Display a box with the contains. More...
 

Static Public Member Functions

static main_display (Database $cn)
 

Private Attributes

 $cn
 
 $dialog_box_id
 

Detailed Description

Definition at line 26 of file status_operation_event.class.php.

Constructor & Destructor Documentation

◆ __construct()

Status_Operation_Event::__construct ( Database  $cn)

Definition at line 31 of file status_operation_event.class.php.

32 {
33 $this->cn=$cn;
34 $this->dialog_box_id="situation_detail_div";
35 }
$input_from cn
Definition: balance.inc.php:66

References $cn, and cn.

Member Function Documentation

◆ __toString()

Status_Operation_Event::__toString ( )

Definition at line 37 of file status_operation_event.class.php.

37 : string
38 {
39 return "status_operation";
40 }

◆ display()

Status_Operation_Event::display (   $p_what)

display what it is asked

Parameters
string$p_what

Definition at line 62 of file status_operation_event.class.php.

62 {
63 $Ledger=new Acc_Ledger($this->cn,0);
64 $last_ledger=array();
65 $last_ledger=$Ledger->get_last(20);
66
67 switch ($p_what) {
68 case 'supplier_now':
69 $this->display_operation(_("Fournisseurs à payer aujourd'hui"),$Ledger->get_supplier_now(),$p_what);
70 break;
71 case 'supplier_late':
72 $this->display_operation(_("Fournisseurs en retard"),$Ledger->get_supplier_late(),$p_what);
73 break;
74 case 'customer_now':
75 $this->display_operation(_("Client à payer aujourd'hui"),$Ledger->get_customer_now(),$p_what);
76 break;
77 case 'customer_late':
78 $this->display_operation(_("Client en retard"),$Ledger->get_customer_late(), $p_what);
79 break;
80 case 'action_now':
81 $Operation=new Follow_Up($this->cn);
82 $this->display_event(_("Action aujourd'hui"),$Operation->get_today(),$p_what);
83 case 'action_late':
84 $Operation=new Follow_Up($this->cn);
85 $this->display_event(_("Action en retard"),$Operation->get_late(),$p_what);
86 break;
87 default:
88 throw new \Exception("Unknown operation [$p_what]",EXC_PARAM_VALUE);
89 }
90 }
foreach(array( 'l', 'gDossier') as $a) if(is_numeric($l)==false) $Ledger
display_event($p_title, $p_array, $p_what)
display_operation($p_title, $p_array, $p_what)
Display a box with the contains.
const EXC_PARAM_VALUE
Definition: constant.php:343

References $Ledger, $Operation, cn, display_event(), display_operation(), and EXC_PARAM_VALUE.

+ Here is the call graph for this function:

◆ display_event()

Status_Operation_Event::display_event (   $p_title,
  $p_array,
  $p_what 
)

Definition at line 43 of file status_operation_event.class.php.

44 {
45 require_once NOALYSS_TEMPLATE."/status_operation_event-display_event.php";
46 }

Referenced by display().

◆ display_operation()

Status_Operation_Event::display_operation (   $p_title,
  $p_array,
  $p_what 
)

Display a box with the contains.

Parameters
array$p_arrayData to display
string$p_titleTitle of the box
div_name$p_divid of the box

Definition at line 53 of file status_operation_event.class.php.

54 {
55 require_once NOALYSS_TEMPLATE."/status_operation_event-display_operation.php";
56 }

Referenced by display().

◆ main_display()

static Status_Operation_Event::main_display ( Database  $cn)
static

Definition at line 91 of file status_operation_event.class.php.

92 {
93
94 require_once NOALYSS_TEMPLATE."/status_operation_event-main_display.php";
95 }

Field Documentation

◆ $cn

Status_Operation_Event::$cn
private

Definition at line 28 of file status_operation_event.class.php.

Referenced by __construct().

◆ $dialog_box_id

Status_Operation_Event::$dialog_box_id
private

Definition at line 29 of file status_operation_event.class.php.


The documentation for this class was generated from the following file: