mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-13 16:34:52 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@537 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cc0b017bcc
commit
5d59f2b8f9
13 changed files with 197 additions and 153 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue