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:
zero 2010-11-24 05:18:13 +00:00
parent a01eba759c
commit f3d2a19c02

View file

@ -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');