mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-15 09:19:57 +09:00
ModuleObject의 Action 실행 전후에 trigger 추가 (moduleObject.proc의 before/after)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7880 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a01eba759c
commit
f3d2a19c02
1 changed files with 16 additions and 1 deletions
|
|
@ -244,6 +244,14 @@
|
|||
// stop_proc==true이면 그냥 패스
|
||||
if($this->stop_proc) return false;
|
||||
|
||||
// trigger call
|
||||
$triggerOutput = ModuleHandler::triggerCall('moduleObject.proc', 'before', $this);
|
||||
if(!$triggerOutput->toBool()) {
|
||||
$this->setError($triggerOutput->getError());
|
||||
$this->setMessage($triggerOutput->getMessage());
|
||||
return false;
|
||||
}
|
||||
|
||||
// addon 실행(called_position 를 before_module_proc로 하여 호출)
|
||||
$called_position = 'before_module_proc';
|
||||
$oAddonController = &getController('addon');
|
||||
|
|
@ -266,8 +274,15 @@
|
|||
else {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// trigger call
|
||||
$triggerOutput = ModuleHandler::triggerCall('moduleObject.proc', 'after', $this);
|
||||
if(!$triggerOutput->toBool()) {
|
||||
$this->setError($triggerOutput->getError());
|
||||
$this->setMessage($triggerOutput->getMessage());
|
||||
return false;
|
||||
}
|
||||
|
||||
// addon 실행(called_position 를 after_module_proc로 하여 호출)
|
||||
$called_position = 'after_module_proc';
|
||||
$oAddonController = &getController('addon');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue