mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
if move the document to the recycle bin, and also delete the relevant notifty.
This commit is contained in:
parent
10d7cd4b0c
commit
eaefd1bafe
2 changed files with 17 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ class ncenterlite extends ModuleObject
|
|||
array('communication.sendMessage', 'ncenterlite', 'controller', 'triggerAfterSendMessage', 'after'),
|
||||
array('document.updateVotedCount', 'ncenterlite', 'controller', 'triggerAfterVotedupdate', 'after'),
|
||||
array('moduleHandler.init', 'ncenterlite', 'controller', 'triggerAddMemberMenu', 'after'),
|
||||
array('document.moveDocumentToTrash', 'ncenterlite', 'controller', 'triggerAfterMoveToTrash', 'after'),
|
||||
);
|
||||
private $delete_triggers = array(
|
||||
array('moduleObject.proc', 'ncenterlite', 'controller', 'triggerBeforeModuleObjectProc', 'before')
|
||||
|
|
|
|||
|
|
@ -432,6 +432,22 @@ class ncenterliteController extends ncenterlite
|
|||
return new Object();
|
||||
}
|
||||
|
||||
function triggerAfterMoveToTrash(&$obj)
|
||||
{
|
||||
$oNcenterliteModel = getModel('ncenterlite');
|
||||
$config = $oNcenterliteModel->getConfig();
|
||||
|
||||
if(empty($config->use))
|
||||
{
|
||||
return new Object();
|
||||
}
|
||||
|
||||
$args = new stdClass();
|
||||
$args->srl = $obj->document_srl;
|
||||
$output = executeQuery('ncenterlite.deleteNotifyBySrl', $args);
|
||||
return new Object();
|
||||
}
|
||||
|
||||
function triggerAfterModuleHandlerProc(&$oModule)
|
||||
{
|
||||
$vars = Context::getRequestVars();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue