Widget
class Widget extends ModeleBoxes (View source)
Widget class
Known issue: This class is also affected by the same kind of issue as in DolibaseModule class (see module.php).
Fast solution:
- Use Dolibase widget builder.
Properties
Widget | $boxlabel | ||
Widget | $boximg | ||
Widget | $position | ||
Widget | $enabled |
Methods
__construct($db, $param = '')
Constructor
$this
setTitle($title, $max = 5)
Set widget title
$this
setLink($link, $picture, $tooltip = '', $target = '_self', $class = 'center" style="vertical-align: middle;margin-right: 5px;')
Set widget link
$this
addContent($text, $attr = 'align="center"', $clean_text = false, $max_length, $first_col_attr = '')
Add content to widget
$this
newLine()
Add a new line to widget
void
showBox(array $head = null, array $contents = null, int $nooutput)
Method to show box. Called by Dolibarr eatch time it wants to display the box.
Details
at line 58
__construct($db, $param = '')
Constructor
at line 87
$this
setTitle($title, $max = 5)
Set widget title
at line 127
$this
setLink($link, $picture, $tooltip = '', $target = '_self', $class = 'center" style="vertical-align: middle;margin-right: 5px;')
Set widget link
at line 150
$this
addContent($text, $attr = 'align="center"', $clean_text = false, $max_length, $first_col_attr = '')
Add content to widget
at line 194
$this
newLine()
Add a new line to widget
at line 211
void
showBox(array $head = null, array $contents = null, int $nooutput)
Method to show box. Called by Dolibarr eatch time it wants to display the box.