git-svn-id: http://xe-core.googlecode.com/svn/trunk@537 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-19 06:26:49 +00:00
parent cc0b017bcc
commit 5d59f2b8f9
13 changed files with 197 additions and 153 deletions

View file

@ -13,6 +13,18 @@
**/
function execute($plugin, $args) {
// $plugin의 객체를 받음
$oPlugin = PluginHandler::getObject($plugin);
// 플러그인 실행
$output = $oPlugin->proc($args);
print $output;
}
/**
* @brief 플러그인 객체를 return
**/
function getObject($plugin) {
// 일단 플러그인의 위치를 찾음
$oPluginModel = &getModel('plugin');
$path = $oPluginModel->getPluginPath($plugin);
@ -30,10 +42,6 @@
if(!is_object($oPlugin)) return sprintf(Context::getLang('msg_plugin_object_is_null'), $plugin);
if(!method_exists($oPlugin, 'proc')) return sprintf(Context::getLang('msg_plugin_proc_is_null'), $plugin);
// 플러그인 실행
$output = $oPlugin->proc($args);
print $output;
}
}