disableLog(); // Vérification des permissions $f->isAccredited(array("lien_module","lien_module_modifier","lien_module_ajouter"), "OR"); // Récupération des valeurs envoyées $f->set_submitted_value(); // Données $module_name = $f->get_submitted_get_value('module') ?? null; $module_name = html_entity_decode($module_name, ENT_QUOTES); $module_name_escaped = $f->db->escapeSimple($module_name); $f->log(__METHOD__, "module name: ".var_export($module_name, true)); $object_name = $f->get_submitted_get_value('object_name') ?? null; $object_name = html_entity_decode($object_name, ENT_QUOTES); $object_name_escaped = $f->db->escapeSimple($object_name); $f->log(__METHOD__, "object name: ".var_export($object_name, true)); $object_id = $f->get_submitted_get_value('object_id') ?? null; $object_id = html_entity_decode($object_id, ENT_QUOTES); $object_id_escaped = $f->db->escapeSimple($object_id); $f->log(__METHOD__, "object id: ".var_export($object_id, true)); // recherche l'objet métier et l'objet lien_module $object = null; $lien_module_inst = null; if (! empty($object_name) && ! empty($object_id)) { $object = $f->findObjectById($object_name, $object_id); $lien_module_inst = $f->findObjectByCondition('lien_module', "module = '$module_name_escaped' AND object_name = '$object_name_escaped' AND object_id = '$object_id_escaped'"); } $documentation = ''; // instancie le module $module_inst = $f->module_manager->get_module_instance($module_name, $lien_module_inst, $object); if (! empty($module_inst)) { $documentation = $module_inst->get_documentation(); } echo $documentation;