|
@@ 2300-2305 (lines=6) @@
|
| 2297 |
|
{ |
| 2298 |
|
$oDB = &DB::getInstance(); |
| 2299 |
|
$oDB->begin(); |
| 2300 |
|
for($i=0;$i<$document_srl_count;$i++) |
| 2301 |
|
{ |
| 2302 |
|
$document_srl = $document_srl_list[$i]; |
| 2303 |
|
$output = $this->deleteDocument($document_srl, true); |
| 2304 |
|
if(!$output->toBool()) return new Object(-1, 'fail_to_delete'); |
| 2305 |
|
} |
| 2306 |
|
$oDB->commit(); |
| 2307 |
|
$msg_code = 'success_deleted'; |
| 2308 |
|
} |
|
@@ 2316-2320 (lines=5) @@
|
| 2313 |
|
|
| 2314 |
|
$oDB = &DB::getInstance(); |
| 2315 |
|
$oDB->begin(); |
| 2316 |
|
for($i=0;$i<$document_srl_count;$i++) { |
| 2317 |
|
$args->document_srl = $document_srl_list[$i]; |
| 2318 |
|
$output = $this->moveDocumentToTrash($args); |
| 2319 |
|
if(!$output || !$output->toBool()) return new Object(-1, 'fail_to_trash'); |
| 2320 |
|
} |
| 2321 |
|
$oDB->commit(); |
| 2322 |
|
$msg_code = 'success_trashed'; |
| 2323 |
|
} |