public function __construct() { global $db; $this->db = $db; // Extrafields en lecture seule $extRO = getDolGlobalString('MONMODULE_SMARTMAKER_EXTRAFIELDS_RO'); if (!empty($extRO)) { foreach (explode(',', $extRO) as $field) { $field = trim($field); if (!empty($field)) { $key = 'options_' . $field; $this->listOfPublishedFields[$key] = $key; } } } // Extrafields en lecture-écriture $extRW = getDolGlobalString('MONMODULE_SMARTMAKER_EXTRAFIELDS_RW'); if (!empty($extRW)) { foreach (explode(',', $extRW) as $field) { $field = trim($field); if (!empty($field)) { $key = 'options_' . $field; $this->listOfPublishedFields[$key] = $key; $this->writableFields[] = $key; } } } $this->boot(); }