| @@ 884-894 (lines=11) @@ | ||
| 881 | } |
|
| 882 | ||
| 883 | // call a trigger (after) |
|
| 884 | if($output->toBool()) |
|
| 885 | { |
|
| 886 | $comment->isMoveToTrash = $isMoveToTrash; |
|
| 887 | $trigger_output = ModuleHandler::triggerCall('comment.deleteComment', 'after', $comment); |
|
| 888 | if(!$trigger_output->toBool()) |
|
| 889 | { |
|
| 890 | $oDB->rollback(); |
|
| 891 | return $trigger_output; |
|
| 892 | } |
|
| 893 | unset($comment->isMoveToTrash); |
|
| 894 | } |
|
| 895 | ||
| 896 | if(!$isMoveToTrash) |
|
| 897 | { |
|
| @@ 650-659 (lines=10) @@ | ||
| 647 | ||
| 648 | //this |
|
| 649 | // Call a trigger (after) |
|
| 650 | if($output->toBool()) |
|
| 651 | { |
|
| 652 | $trigger_obj = $oDocument->getObjectVars(); |
|
| 653 | $trigger_output = ModuleHandler::triggerCall('document.deleteDocument', 'after', $trigger_obj); |
|
| 654 | if(!$trigger_output->toBool()) |
|
| 655 | { |
|
| 656 | $oDB->rollback(); |
|
| 657 | return $trigger_output; |
|
| 658 | } |
|
| 659 | } |
|
| 660 | // declared document, log delete |
|
| 661 | $this->_deleteDeclaredDocuments($args); |
|
| 662 | $this->_deleteDocumentReadedLog($args); |
|