@@ 2317-2322 (lines=6) @@ | ||
2314 | { |
|
2315 | $oDB = &DB::getInstance(); |
|
2316 | $oDB->begin(); |
|
2317 | for($i=0;$i<$document_srl_count;$i++) |
|
2318 | { |
|
2319 | $document_srl = $document_srl_list[$i]; |
|
2320 | $output = $this->deleteDocument($document_srl, true); |
|
2321 | if(!$output->toBool()) return new BaseObject(-1, 'fail_to_delete'); |
|
2322 | } |
|
2323 | $oDB->commit(); |
|
2324 | $msg_code = 'success_deleted'; |
|
2325 | } |
|
@@ 2333-2337 (lines=5) @@ | ||
2330 | ||
2331 | $oDB = &DB::getInstance(); |
|
2332 | $oDB->begin(); |
|
2333 | for($i=0;$i<$document_srl_count;$i++) { |
|
2334 | $args->document_srl = $document_srl_list[$i]; |
|
2335 | $output = $this->moveDocumentToTrash($args); |
|
2336 | if(!$output || !$output->toBool()) return new BaseObject(-1, 'fail_to_trash'); |
|
2337 | } |
|
2338 | $oDB->commit(); |
|
2339 | $msg_code = 'success_trashed'; |
|
2340 | } |