26 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
50 $this->family =
"ecm";
51 $this->module_position =
'10';
53 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
55 $this->
description =
"Electronic Content Management";
57 $this->version =
'dolibarr';
59 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
61 $this->picto =
'folder';
64 $this->dirs = array(
"/ecm/temp");
67 $this->config_page_url = array(
'ecm.php');
70 $this->depends = array();
71 $this->requiredby = array();
74 $this->
const = array();
77 $this->
const[$r][0] =
"ECM_AUTO_TREE_ENABLED";
78 $this->
const[$r][1] =
"chaine";
79 $this->
const[$r][2] =
"1";
80 $this->
const[$r][3] =
'Auto tree is enabled by default';
81 $this->
const[$r][4] = 0;
84 $this->boxes = array();
95 $this->rights_class =
'ecm';
96 $this->rights = array();
99 $this->rights[$r][0] = 2501;
100 $this->rights[$r][1] =
'Read or download documents';
101 $this->rights[$r][2] =
'r';
102 $this->rights[$r][3] = 0;
103 $this->rights[$r][4] =
'read';
106 $this->rights[$r][0] = 2503;
107 $this->rights[$r][1] =
'Upload a document';
108 $this->rights[$r][2] =
'w';
109 $this->rights[$r][3] = 0;
110 $this->rights[$r][4] =
'upload';
113 $this->rights[$r][0] = 2515;
114 $this->rights[$r][1] =
'Administer directories of documents';
115 $this->rights[$r][2] =
'w';
116 $this->rights[$r][3] = 0;
117 $this->rights[$r][4] =
'setup';
122 $this->menus = array();
126 $this->menu[$r] = array(
'fk_menu'=>0,
130 'url'=>
'/ecm/index.php',
133 'perms'=>
'$user->rights->ecm->read || $user->rights->ecm->upload || $user->rights->ecm->setup',
134 'enabled'=>
'$conf->ecm->enabled',
140 $this->menu[$r] = array(
'fk_menu'=>
'fk_mainmenu=ecm',
145 'url'=>
'/ecm/index.php?mainmenu=ecm&leftmenu=ecm',
148 'perms'=>
'$user->rights->ecm->read || $user->rights->ecm->upload',
149 'enabled'=>
'$user->rights->ecm->read || $user->rights->ecm->upload',
154 $this->menu[$r] = array(
'fk_menu'=>
'fk_mainmenu=ecm,fk_leftmenu=ecm',
156 'titre'=>
'ECMSectionsManual',
158 'leftmenu'=>
'ecm_manual',
159 'url'=>
'/ecm/index.php?action=file_manager&mainmenu=ecm&leftmenu=ecm',
162 'perms'=>
'$user->rights->ecm->read || $user->rights->ecm->upload',
163 'enabled'=>
'$user->rights->ecm->read || $user->rights->ecm->upload',
168 $this->menu[$r] = array(
'fk_menu'=>
'fk_mainmenu=ecm,fk_leftmenu=ecm',
170 'titre'=>
'ECMSectionsAuto',
172 'url'=>
'/ecm/index_auto.php?action=file_manager&mainmenu=ecm&leftmenu=ecm',
175 'perms'=>
'$user->rights->ecm->read || $user->rights->ecm->upload',
176 'enabled'=>
'($user->rights->ecm->read || $user->rights->ecm->upload) && ! empty($conf->global->ECM_AUTO_TREE_ENABLED)',
Description and activation class for module ECM.
</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.
__construct($db)
Constructor.
$conf db name
Only used if Module[ID]Name translation string is not found.
$conf db
API class for accounts.