mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-23 21:29:58 +09:00
엮인글 입력/삭제시 trigger 동작하도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6385 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
dc2a8c76a5
commit
c2805e48e3
1 changed files with 11 additions and 0 deletions
|
|
@ -170,6 +170,9 @@
|
|||
// 원본글에 알림(notify_message)가 설정되어 있으면 메세지 보냄
|
||||
if(!$manual_inserted) $oDocument->notify(Context::getLang('trackback'), $obj->excerpt);
|
||||
|
||||
// trigger 호출 (after)
|
||||
$output = ModuleHandler::triggerCall('trackback.insertTrackback', 'after', $obj);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
|
@ -186,6 +189,10 @@
|
|||
if($trackback->data->trackback_srl != $trackback_srl) return new Object(-1, 'msg_invalid_request');
|
||||
$document_srl = $trackback->data->document_srl;
|
||||
|
||||
// trigger 호출 (before)
|
||||
$output = ModuleHandler::triggerCall('trackback.deleteTrackback', 'before', $trackback);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
// document model 객체 생성
|
||||
$oDocumentModel = &getModel('document');
|
||||
|
||||
|
|
@ -206,6 +213,10 @@
|
|||
$output = $oDocumentController->updateTrackbackCount($document_srl, $trackback_count);
|
||||
$output->add('document_srl', $document_srl);
|
||||
|
||||
// trigger 호출 (before)
|
||||
$output = ModuleHandler::triggerCall('trackback.deleteTrackback', 'after', $trackback);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue