25include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
 
   43    $this->family = 
"products";
 
   44    $this->module_position = 
'85';
 
   46    $this->
name = preg_replace(
'/^mod/i', 
'', get_class($this));
 
   47    $this->
description = 
"Enable the usage of math expressions for prices";
 
   49    $this->version = 
'experimental';
 
   51    $this->const_name = 
'MAIN_MODULE_'.strtoupper($this->
name);
 
   53    $this->picto = 
'dynamicprice';
 
   56    $this->dirs = array();
 
   60    $this->config_page_url = array(
"dynamic_prices.php@product");
 
   64    $this->depends = array();
 
   65    $this->requiredby = array();
 
   66    $this->langfiles = array(
"other");
 
   70    $this->
const = array();
 
   74    $this->tabs = array();
 
   78    $this->boxes = array();
 
   82    $this->rights = array();
 
   83    $this->rights_class = 
'dynamicprices';
 
 
   95  public function init($options = 
'')
 
   97    $result = $this->
_load_tables(
'/install/mysql/', 
'dynamicprices');
 
  103    $this->
remove($options);
 
  107    return $this->
_init($sql, $options);
 
 
 
_init($array_sql, $options='')
Enables a module.
 
_load_tables($reldir, $onlywithsuffix='')
Create tables and keys required by module:
 
Class descriptor of DynamicPrices module.
 
init($options='')
Function called when module is enabled.
 
__construct($db)
Constructor.
 
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as 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.