コード例 #1
0
         $result->update_speech = "param is not valid!";
     }
 } else {
     if ($IS_UPDATE_SPEECH_TITLE) {
         if (0 < $SPEECH_ID && !empty($SPEECH_TITLE)) {
             $query_output = $wdj_mysql_interface->update_speech($SPEECH_ID, null, null, $SPEECH_TITLE);
             array_push($result->query_output_arr, $query_output);
         } else {
             array_push($result->query_output_arr, "param is not valid!");
         }
     } else {
         if ($IS_UPDATE_TABLE_ROW_ORDER_ON_TODAYS_SPEAKER) {
             // 테이블의 열 순서가 변경됨.
             $debug .= "IS_UPDATE_TABLE_ROW_ORDER_ON_TODAYS_SPEAKER";
             array_push($debug_stack_array, "IS_UPDATE_TABLE_ROW_ORDER_ON_TODAYS_SPEAKER");
             $speech_table_row_info_arr = JSONManager::get_json_obj_from_JSONStringify($SPEECH_TABLE_ROW_INFO_ARR_JSON_STR);
             array_push($debug_stack_array, "SPEECH_TABLE_ROW_INFO_ARR_JSON_STR : {$SPEECH_TABLE_ROW_INFO_ARR_JSON_STR}");
             array_push($debug_stack_array, "count : " . count($speech_table_row_info_arr));
             for ($idx = 0; $idx < count($speech_table_row_info_arr); $idx++) {
                 $cur_speech_table_row_info = $speech_table_row_info_arr[$idx];
                 $cur_speech_id = intval($cur_speech_table_row_info->SPEECH_ID);
                 $cur_order_num = intval($cur_speech_table_row_info->ORDER_NUM);
                 array_push($debug_stack_array, "idx : {$idx}");
                 array_push($debug_stack_array, "cur_speech_id : {$cur_speech_id}");
                 array_push($debug_stack_array, "cur_order_num : {$cur_order_num}");
                 if ($cur_speech_id > 0 && $cur_order_num > -1) {
                     $query_output = $wdj_mysql_interface->update_speech($cur_speech_id, $cur_order_num);
                     array_push($result->query_output_arr, $query_output);
                 }
             }
         } else {