// Use here a free id (See in Home -> System information -> Dolibarr for list of used modules id).
$this->numero=141916;
// Key text used to identify module (for permissions, menus, etc...)
$this->rights_class='quickmemo';
// Family can be 'base' (core modules),'crm','financial','hr','projects','products','ecm','technic' (transverse modules),'interface' (link with external tools),'other','...'
// It is used to group modules by family in module setup page
// Module position in the family on 2 digits ('01', '10', '20', ...)
$this->module_position='90';
// Gives the possibility for the module, to provide his own family info and position of this family (Overwrite $this->family and $this->module_position. Avoid this)
$this->editor_squarred_logo='';// Must be image filename into the module/img directory followed with @modulename. Example: 'myimage.png@quickmemo'
// Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated', 'experimental_deprecated' or a version string like 'x.y.z'
$this->version='experimental';
// Url to the file with your last numberversion of this module
// Define some features supported by module (triggers, login, substitutions, menus, css, etc...)
$this->module_parts=array(
// Set this to 1 if module has its own trigger directory (core/triggers)
'triggers'=>0,
// Set this to 1 if module has its own login method file (core/login)
'login'=>0,
// Set this to 1 if module has its own substitution function file (core/substitutions)
'substitutions'=>0,
// Set this to 1 if module has its own menus handler directory (core/menus)
'menus'=>0,
// Set this to 1 if module overwrite template dir (core/tpl)
'tpl'=>0,
// Set this to 1 if module has its own barcode directory (core/modules/barcode)
'barcode'=>0,
// Set this to 1 if module has its own models directory (core/modules/xxx)
'models'=>0,
// Set this to 1 if module has its own printing directory (core/modules/printing)
'printing'=>0,
// Set this to 1 if module has its own theme directory (theme)
'theme'=>0,
// Set this to relative path of css file if module has its own css file
'css'=>array(
// '/quickmemo/css/quickmemo.css.php',
),
// Set this to relative path of js file if module must load a js on all pages
'js'=>array(
// '/quickmemo/js/quickmemo.js.php',
),
// Set here all hooks context managed by module. To find available hook context, make a "grep -r '>initHooks(' *" on source code. You can also set hook context to 'all'
$this->hidden=getDolGlobalInt('MODULE_QUICKMEMO_DISABLED');// A condition to disable module;
// List of module class names that must be enabled if this module is enabled. Example: array('always'=>array('modModuleToEnable1','modModuleToEnable2'), 'FR'=>array('modModuleToEnableFR')...)
$this->depends=array();
// List of module class names to disable if this one is disabled. Example: array('modModuleToDisable1', ...)
$this->requiredby=array();
// List of module class names this module is in conflict with. Example: array('modModuleToDisable1', ...)
$this->conflictwith=array();
// The language file dedicated to your module
$this->langfiles=array("quickmemo@quickmemo");
// Prerequisites
$this->phpmin=array(7,2);// Minimum version of PHP required by module
// $this->phpmax = array(8, 0); // Maximum version of PHP required by module
$this->need_dolibarr_version=array(19,-3);// Minimum version of Dolibarr required by module
// $this->max_dolibarr_version = array(19, -3); // Maximum version of Dolibarr required by module
$this->need_javascript_ajax=0;
// Messages at activation
$this->warnings_activation=array();// Warning to show when we activate a module. Example: array('always'='text') or array('FR'='textfr','MX'='textmx'...)
$this->warnings_activation_ext=array();// Warning to show when we activate a module if another module is on. Example: array('modOtherModule' => array('always'=>'text')) or array('always' => array('FR'=>'textfr','MX'=>'textmx'...))
// 'categories_x' to add a tab in category view (replace 'x' by type of category (0=product, 1=supplier, 2=customer, 3=member)
// 'contact' to add a tab in contact view
// 'contract' to add a tab in contract view
// 'delivery' to add a tab in delivery view
// 'group' to add a tab in group view
// 'intervention' to add a tab in intervention view
// 'invoice' to add a tab in customer invoice view
// 'supplier_invoice' to add a tab in supplier invoice view
// 'member' to add a tab in foundation member view
// 'opensurveypoll' to add a tab in opensurvey poll view
// 'order' to add a tab in sale order view
// 'supplier_order' to add a tab in supplier order view
// 'payment' to add a tab in payment view
// 'supplier_payment' to add a tab in supplier payment view
// 'product' to add a tab in product view
// 'propal' to add a tab in propal view
// 'project' to add a tab in project view
// 'stock' to add a tab in stock view
// 'thirdparty' to add a tab in third party view
// 'user' to add a tab in user view
// Dictionaries
/*Example:
$this->dictionaries=array(
'langs'=>'quickmemo@quickmemo',
// List of tables we want to see into dictionary editor
'tabname'=>array("table1","table2","table3"),
// Label of tables
'tablib'=>array("Table1","Table2","Table3"),
// Request to select fields
'tabsql'=>array('SELECT f.rowid as rowid, f.code, f.label, f.active FROM '.$this->db->prefix().'table1 as f','SELECT f.rowid as rowid, f.code, f.label, f.active FROM '.$this->db->prefix().'table2 as f','SELECT f.rowid as rowid, f.code, f.label, f.active FROM '.$this->db->prefix().'table3 as f'),
return-1;// Do not activate module if error 'not allowed' returned when loading module SQL queries (the _load_table run sql with run_sql with the error allowed parameter set to 'default')