| @@ 258-277 (lines=20) @@ | ||
| 255 | // Document |
|
| 256 | $output = executeQuery('document.insertDocument', $obj); |
|
| 257 | ||
| 258 | if($output->toBool()) |
|
| 259 | { |
|
| 260 | // Tags |
|
| 261 | if($obj->tags) |
|
| 262 | { |
|
| 263 | $tag_list = explode(',',$obj->tags); |
|
| 264 | $tag_count = count($tag_list); |
|
| 265 | for($i=0;$i<$tag_count;$i++) |
|
| 266 | { |
|
| 267 | $args = new stdClass; |
|
| 268 | $args->tag_srl = getNextSequence(); |
|
| 269 | $args->module_srl = $module_srl; |
|
| 270 | $args->document_srl = $obj->document_srl; |
|
| 271 | $args->tag = trim($tag_list[$i]); |
|
| 272 | $args->regdate = $obj->regdate; |
|
| 273 | if(!$args->tag) continue; |
|
| 274 | $output = executeQuery('tag.insertTag', $args); |
|
| 275 | } |
|
| 276 | } |
|
| 277 | } |
|
| 278 | ||
| 279 | fclose($fp); |
|
| 280 | FileHandler::removeFile($target_file); |
|
| @@ 810-826 (lines=17) @@ | ||
| 807 | ||
| 808 | $output = executeQuery('document.insertDocument', $obj); |
|
| 809 | ||
| 810 | if($output->toBool() && $obj->tags) |
|
| 811 | { |
|
| 812 | $tag_list = explode(',',$obj->tags); |
|
| 813 | $tag_count = count($tag_list); |
|
| 814 | for($i=0;$i<$tag_count;$i++) |
|
| 815 | { |
|
| 816 | $args = new stdClass; |
|
| 817 | $args->tag_srl = getNextSequence(); |
|
| 818 | $args->module_srl = $module_srl; |
|
| 819 | $args->document_srl = $obj->document_srl; |
|
| 820 | $args->tag = trim($tag_list[$i]); |
|
| 821 | $args->regdate = $obj->regdate; |
|
| 822 | if(!$args->tag) continue; |
|
| 823 | $output = executeQuery('tag.insertTag', $args); |
|
| 824 | } |
|
| 825 | ||
| 826 | } |
|
| 827 | // Add extra variables |
|
| 828 | if(count($extra_vars)) |
|
| 829 | { |
|