26 include_once DOL_DOCUMENT_ROOT.
"/core/modules/DolibarrModules.class.php";
48 $this->numero = 55000;
50 $this->rights_class =
'opensurvey';
54 $this->family =
"portal";
55 $this->module_position =
'40';
57 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
59 $this->
description =
"Module to make online surveys (like Doodle, Studs, Rdvz, ...)";
61 $this->version =
'dolibarr';
63 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
67 $this->picto =
'poll';
70 $this->dirs = array();
75 $this->hidden =
false;
76 $this->depends = array();
77 $this->requiredby = array();
78 $this->conflictwith = array();
79 $this->phpmin = array(5, 4);
80 $this->need_dolibarr_version = array(3, 4, 0);
83 $this->
const = array();
86 $this->dictionaries = array();
89 $this->boxes = array();
100 $this->rights = array();
105 $this->rights[$r][0] = 55001;
106 $this->rights[$r][1] =
'Read surveys';
107 $this->rights[$r][2] =
'r';
108 $this->rights[$r][3] = 0;
109 $this->rights[$r][4] =
'read';
114 $this->rights[$r][0] = 55002;
115 $this->rights[$r][1] =
'Create/modify surveys';
116 $this->rights[$r][2] =
'w';
117 $this->rights[$r][3] = 0;
118 $this->rights[$r][4] =
'write';
125 $this->menu[$r] = array(
126 'fk_menu'=>
'fk_mainmenu=tools',
130 'leftmenu'=>
'opensurvey',
131 'url'=>
'/opensurvey/index.php?mainmenu=tools&leftmenu=opensurvey',
132 'langs'=>
'opensurvey',
134 'enabled'=>
'$conf->opensurvey->enabled',
135 'perms'=>
'$user->rights->opensurvey->read',
141 $this->menu[$r] = array(
142 'fk_menu'=>
'fk_mainmenu=tools,fk_leftmenu=opensurvey',
144 'titre'=>
'NewSurvey',
146 'leftmenu'=>
'opensurvey_new',
147 'url'=>
'/opensurvey/wizard/index.php',
148 'langs'=>
'opensurvey',
150 'enabled'=>
'$conf->opensurvey->enabled',
151 'perms'=>
'$user->rights->opensurvey->write',
157 $this->menu[$r] = array(
158 'fk_menu'=>
'fk_mainmenu=tools,fk_leftmenu=opensurvey',
162 'leftmenu'=>
'opensurvey_list',
163 'url'=>
'/opensurvey/list.php',
164 'langs'=>
'opensurvey',
166 'enabled'=>
'$conf->opensurvey->enabled',
167 'perms'=>
'$user->rights->opensurvey->read',
182 public function init($options =
'')
185 $this->
remove($options);
189 return $this->
_init($sql, $options);
</td > param sortfield sortorder printFieldListOption< tdclass="liste_titremaxwidthsearchright"></td ></tr >< trclass="liste_titre">< inputtype="checkbox"onClick="toggle(this)"/> Ref p ref Label p label Duration p duration center DesiredStock p desiredstock right StockLimitShort p seuil_stock_alerte right stock_physique right stock_real_warehouse right Ordered right StockToBuy right SupplierRef right param sortfield sortorder printFieldListTitle warehouseinternal SELECT description FROM product_lang WHERE qty< br > qty qty qty StockTooLow StockTooLow help help help< trclass="oddeven">< td >< inputtype="checkbox"class="check"name="choose'.$i.'"></td >< tdclass="nowrap"> stock</td >< td >< inputtype="hidden"name="desc'.$i.'"value="'.dol_escape_htmltag($objp-> description
Only used if Module[ID]Desc translation string is not found.
$conf db name
Only used if Module[ID]Name translation string is not found.
$conf db
API class for accounts.
Description and activation class for module opensurvey.
_init($array_sql, $options= '')
Enables a module.
__construct($db)
Constructor.
init($options= '')
Function called when module is enabled.