28include_once DOL_DOCUMENT_ROOT.
"/core/boxes/modules_boxes.php";
42 public $boxcode =
"mymodulebox";
48 public $boximg =
"mymodule@mymodule";
53 public $boxlabel =
'MyWidget';
58 public $lang =
'mymodule@mymodule';
63 public $depends = array(
'mymodule');
68 public $widgettype =
'graph';
81 parent::__construct($db, $param);
83 $this->param = $param;
107 $text = $langs->trans(
"MyModuleBoxDescription", $max);
108 $this->info_box_head = array(
112 'sublink' =>
'https://example.com',
114 'subpicto' =>
'object_mymodule@mymodule',
120 'subclass' =>
'center',
128 $this->info_box_contents = array(
132 'tr' =>
'class="left"',
137 'text' =>
'First cell of first line',
139 'url' =>
'https://example.com',
141 'target' =>
'_blank',
145 'textnoformat' =>
'',
160 'text' =>
'Second cell',
165 'tr' =>
'class="left"',
166 'text' =>
'Another line'
169 'tr' =>
'class="left"',
175 'tr' =>
'class="left"',
179 'tr' =>
'class="left"',
199 public function showBox($head =
null, $contents =
null, $nooutput = 0)
203 return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
Class to manage Dolibarr database access.