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