CAppUI::setMsg("Ligne {$line_number} : type de concept invalide : <strong>{$line['concept_type']}</strong>", UI_MSG_WARNING); continue; } // If list name provided, it needs to exist if ($line["list_name"]) { $_list = new CExList(); $_list->name = $line["list_name"]; if (!$_list->loadMatchingObject()) { CAppUI::setMsg("Ligne {$line_number} : nom de liste introuvable : <strong>{$line['list_name']}</strong>", UI_MSG_WARNING); continue; } } $concept = new CExConcept(); $ds = $concept->_spec->ds; $where = array("name" => $ds->prepare("=%", $line["concept_name"])); $concept->loadObject($where); if (!$concept->_id) { if ($_list && $_list->_id && $line["list_name"]) { $concept->ex_list_id = $_list->_id; if ($_list->multiple) { $concept_prop = "set vertical|1 typeEnum|checkbox"; } } $concept->name = $line["concept_name"]; $concept->prop = $concept_prop; if ($msg = $concept->store()) { CAppUI::setMsg("Ligne {$line_number} : {$msg}", UI_MSG_WARNING); continue; } else { CAppUI::setMsg("{$concept->_class}-msg-create", UI_MSG_OK); }