28 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
51 $this->rights_class =
'api';
55 $this->family =
"interface";
56 $this->module_position =
'24';
58 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
62 $this->version =
'dolibarr';
64 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
66 $this->core_enabled = 1;
70 $this->picto =
'technic';
72 $this->module_parts = array();
76 $this->dirs = array(
'/api/temp');
79 $this->config_page_url = array(
"index.php@api");
82 $this->hidden =
false;
83 $this->depends = array();
84 $this->requiredby = array(
'modZapier');
85 $this->conflictwith = array();
86 $this->phpmin = array(5, 4);
87 $this->langfiles = array(
"other");
94 $this->
const = array();
120 $this->tabs = array();
123 if (!isset($conf->api->enabled))
125 $conf->api =
new stdClass();
126 $conf->api->enabled = 0;
128 $this->dictionaries = array();
132 $this->boxes = array();
137 $this->rights = array();
151 $this->menu = array();
228 public function init($options =
'')
234 return $this->
_init($sql, $options);
245 public function remove($options =
'')
249 "DELETE FROM ".MAIN_DB_PREFIX.
"const WHERE name = ".$this->db->encrypt(
'MAIN_MODULE_API', 1),
250 "DELETE FROM ".MAIN_DB_PREFIX.
"const WHERE name = ".$this->
db->encrypt(
'API_PRODUCTION_MODE', 1)
253 return $this->
_remove($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.
_remove($array_sql, $options= '')
Disable function.
Description and activation class for module Api.
init($options= '')
Function called when module is enabled.
_init($array_sql, $options= '')
Enables a module.
__construct($db)
Constructor.
_load_tables($reldir)
Create tables and keys required by module.