コード例 #1
0
     }
 }
 $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);
     }
 } else {
     if ($_list && $_list->_id && $line["list_name"]) {
         $concept->ex_list_id = $_list->_id;
         if ($_list->multiple) {
             $concept->prop = "set vertical|1 typeEnum|checkbox";
             if ($msg = $concept->store()) {
                 CAppUI::setMsg("Ligne {$line_number} : {$msg}", UI_MSG_WARNING);
                 continue;
             } else {
                 CAppUI::setMsg("{$concept->_class}-msg-modify", UI_MSG_OK);