# Create a new Widgets, need help to understand this code

**URL:** <https://www.dolibarr.org/forum/t/create-a-new-widgets-need-help-to-understand-this-code/20081>\
**Category:** Using my Dolibarr\
**Tags:** v12\
**Created:** [January 14, 2021, 2:18am UTC](https://www.dolibarr.org/forum/t/create-a-new-widgets-need-help-to-understand-this-code/20081 "2021-01-14T02:18:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![akkakm](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/a/ecccb3/32.png) [@akkakm](https://www.dolibarr.org/forum/u/akkakm)\
**Post date:** [January 14, 2021, 2:18am UTC](https://www.dolibarr.org/forum/t/create-a-new-widgets-need-help-to-understand-this-code/20081/1 "2021-01-14T02:18:43Z")

</div>

Hi,  
Can someone can help me to understand this code

class **box\_expense\_reports** extends ModeleBoxes --\> « box\_expense… » OK --\> Class name  
{  
public $boxcode=« lastexpensereports »; --\> Help ???  
public $boximg=« object\_member »; --\> Help ???  
public $boxlabel=« BoxLastExpenseReports »; OK --\> Name of the box  
public $depends = array(« adherentsplus »); --\> Help ???  
/\*\*

- @var DoliDB Database handler.  
\*/  
public $db;  
public $enabled = 1;  
public $info\_box\_head = array();  
public $info\_box\_contents = array();

Regards  
Mo
