|
noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
Main class for widget. More...
Inheritance diagram for Noalyss\Widget\Widget:
Collaboration diagram for Noalyss\Widget\Widget:Public Member Functions | |
| __construct (protected int $user_widget_id=0, protected string $widget_code="", protected $db=null) | |
| button_zoom () | |
| compute the button ZOOM to put in the title | |
| close_div () | |
| display () | |
| display the content for the current connected user of the widget with the parameter | |
| display_parameter () | |
| MUST BE overrided if the widget needs extra parameters, display the content of extra-parameter. | |
| get_div_domid () | |
| compute the DIV ID | |
| get_parameter () | |
| get the parameter of the widget and returns an array | |
| get_user_widget_id () | |
| get_widget_code () | |
| input ($flnumber=true) | |
| display a description of the widget and allow to save it for the current user, call input_param function of the widget if it exists | |
| input_parameter () | |
| MUST BE overrided if the widget needs extra parameters, create a FORM to add extra-parameter. | |
| make_form ($html_input) | |
| open a form with the DOMID "widget_code"_param, it appears once only for each widget in the dialog box for adding widget to the dashboard | |
| open_div () | |
| output the DIV HTML with class and id for the widget | |
| set_user_widget_id (int $user_widget_id) | |
| set_widget_code (string $widget_code) | |
| title ( $title) | |
| display the title and the icon for zooming | |
Static Public Member Functions | |
| static | ajax_display (Widget $widget) |
| display a box and fills it with the content of an ajax calls , the ajax calls Widget::display | |
| static | build_user_widget ($user_widget_id, $widget_code) |
| Build a widget thank the user_widget_id (SQL :PK : USER_WIDGET.UW_ID) and $widget_code. | |
| static | display_available () |
| @brier display activated widgets | |
| static | get_enabled_widget () |
| returns an array of widget for the connected user, ordered | |
| static | save ($array) |
| save widget order from an array | |
| static | scanfolder () |
| scan folder to find install.php file , include them if the code is not in DB | |
| static | select_available () |
| show all the widget that can be added | |
Main class for widget.
Definition at line 31 of file widget.php.
| Noalyss\Widget\Widget::__construct | ( | protected int | $user_widget_id = 0, |
| protected string | $widget_code = "", | ||
| protected | $db = null ) |
Definition at line 34 of file widget.php.
References db.
|
static |
display a box and fills it with the content of an ajax calls , the ajax calls Widget::display
| Widget | $widget |
Definition at line 177 of file widget.php.
References $dossier_id, _, close_div(), display(), get_user_widget_id(), get_widget_code(), h2(), open_div(), and print.
Here is the call graph for this function:
|
static |
Build a widget thank the user_widget_id (SQL :PK : USER_WIDGET.UW_ID) and $widget_code.
| $user_widget_id | integer (SQL :PK : USER_WIDGET.UW_ID) |
| $widget_code | string (SQL WIDGET_DASHBOARD.WD_CODE) |
Definition at line 137 of file widget.php.
Referenced by display_available(), and select_available().
| Noalyss\Widget\Widget::button_zoom | ( | ) |
compute the button ZOOM to put in the title
Definition at line 357 of file widget.php.
References get_div_domid(), and Icon_Action\zoom().
Referenced by title().
Here is the call graph for this function:| Noalyss\Widget\Widget::close_div | ( | ) |
Definition at line 168 of file widget.php.
Referenced by ajax_display(), Noalyss\Widget\Agenda\display(), Noalyss\Widget\Bookmark\display(), Noalyss\Widget\Coming_Event\display(), Noalyss\Widget\Event\display(), Noalyss\Widget\Invoice\display(), Noalyss\Widget\Last_Event\display(), Noalyss\Widget\Last_Operation\display(), and Noalyss\Widget\Mini_Report\display().
|
abstract |
display the content for the current connected user of the widget with the parameter
Reimplemented in Noalyss\Widget\Agenda, Noalyss\Widget\Bookmark, Noalyss\Widget\Coming_Event, Noalyss\Widget\Event, Noalyss\Widget\Invoice, Noalyss\Widget\Last_Event, Noalyss\Widget\Last_Operation, Noalyss\Widget\Mini_Report, and Noalyss\Widget\Todo_List.
Referenced by ajax_display().
|
static |
@brier display activated widgets
Definition at line 214 of file widget.php.
References $aWidget, build_user_widget(), create_script(), and get_enabled_widget().
Here is the call graph for this function:| Noalyss\Widget\Widget::display_parameter | ( | ) |
MUST BE overrided if the widget needs extra parameters, display the content of extra-parameter.
| $user_widget_id |
Exception
Reimplemented in Noalyss\Widget\Invoice, and Noalyss\Widget\Mini_Report.
Definition at line 311 of file widget.php.
Referenced by input().
| Noalyss\Widget\Widget::get_div_domid | ( | ) |
compute the DIV ID
Definition at line 165 of file widget.php.
References return.
Referenced by button_zoom(), Noalyss\Widget\Mini_Report\display(), and open_div().
|
static |
returns an array of widget for the connected user, ordered
Definition at line 115 of file widget.php.
Referenced by display_available().
| Noalyss\Widget\Widget::get_parameter | ( | ) |
get the parameter of the widget and returns an array
Definition at line 345 of file widget.php.
References db.
Referenced by Noalyss\Widget\Invoice\display(), Noalyss\Widget\Invoice\display_parameter(), and Noalyss\Widget\Mini_Report\display_parameter().
| Noalyss\Widget\Widget::get_user_widget_id | ( | ) |
Definition at line 41 of file widget.php.
Referenced by ajax_display().
| Noalyss\Widget\Widget::get_widget_code | ( | ) |
Definition at line 52 of file widget.php.
Referenced by ajax_display().
| Noalyss\Widget\Widget::input | ( | $flnumber = true | ) |
display a description of the widget and allow to save it for the current user, call input_param function of the widget if it exists
Definition at line 74 of file widget.php.
References $nb, $row, db, display_parameter(), and input_parameter().
Here is the call graph for this function:| Noalyss\Widget\Widget::input_parameter | ( | ) |
MUST BE overrided if the widget needs extra parameters, create a FORM to add extra-parameter.
Exception
Reimplemented in Noalyss\Widget\Invoice, and Noalyss\Widget\Mini_Report.
Definition at line 299 of file widget.php.
Referenced by input().
| Noalyss\Widget\Widget::make_form | ( | $html_input | ) |
open a form with the DOMID "widget_code"_param, it appears once only for each widget in the dialog box for adding widget to the dashboard
| $html_input | string HTML string with all the HTML INPUT that will be enclosed by the FORM |
Definition at line 287 of file widget.php.
Referenced by Noalyss\Widget\Invoice\input_parameter(), and Noalyss\Widget\Mini_Report\input_parameter().
| Noalyss\Widget\Widget::open_div | ( | ) |
output the DIV HTML with class and id for the widget
Definition at line 157 of file widget.php.
References get_div_domid().
Referenced by ajax_display(), Noalyss\Widget\Agenda\display(), Noalyss\Widget\Bookmark\display(), Noalyss\Widget\Coming_Event\display(), Noalyss\Widget\Event\display(), Noalyss\Widget\Invoice\display(), Noalyss\Widget\Last_Event\display(), Noalyss\Widget\Last_Operation\display(), and Noalyss\Widget\Mini_Report\display().
Here is the call graph for this function:
|
static |
save widget order from an array
| $array | array of USER_WIDGET.UW_ID |
| DatabaseCore | fails , cannot update |
Definition at line 234 of file widget.php.
|
static |
scan folder to find install.php file , include them if the code is not in DB
Definition at line 319 of file widget.php.
References $cn.
Referenced by select_available().
|
static |
show all the widget that can be added
Definition at line 267 of file widget.php.
References $aWidget, $cn, build_user_widget(), and scanfolder().
Here is the call graph for this function:| Noalyss\Widget\Widget::set_user_widget_id | ( | int | $user_widget_id | ) |
Definition at line 46 of file widget.php.
| Noalyss\Widget\Widget::set_widget_code | ( | string | $widget_code | ) |
Definition at line 57 of file widget.php.
| Noalyss\Widget\Widget::title | ( | $title | ) |
display the title and the icon for zooming
| $title | string title of the widget |
Definition at line 365 of file widget.php.
References $r, $title, and button_zoom().
Here is the call graph for this function: