mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-20 03:39:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@101 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cf88cc4cb2
commit
dec618986e
3 changed files with 70 additions and 9 deletions
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
/**
|
||||
* @class AddOnHandler
|
||||
* @class AddOn
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief addon을 호출하여 실행
|
||||
* @todo 미구현
|
||||
**/
|
||||
|
||||
class AddOnHandler extends Handler {
|
||||
class AddOn extends Object {
|
||||
|
||||
var $addon_name; ///< 실행하고자 하는 addon의 이름
|
||||
|
||||
|
|
@ -14,16 +14,16 @@
|
|||
* @brief 모듈에 등록된 애드온을 act값에 맞추어 정리
|
||||
**/
|
||||
function callAddOns(&$oModule, $oModuleInfo, $status) {
|
||||
if(!$oModuleInfo->isAddOnExists($status, ContextHandler::get('act'))) return;
|
||||
if(!$oModuleInfo->isAddOnExists($status, Context::get('act'))) return;
|
||||
|
||||
$addon_list = $oModuleInfo->getAddOnList($status, ContextHandler::get('act'));
|
||||
$addon_list = $oModuleInfo->getAddOnList($status, Context::get('act'));
|
||||
$addon_cnt = count($addon_list);
|
||||
if(!$addon_cnt) return;
|
||||
|
||||
for($i=0; $i<$addon_cnt; $i++) {
|
||||
$addon_name = $addon_list[$i];
|
||||
|
||||
$oAddOn = new AddOnHandler($addon_name);
|
||||
$oAddOn = new AddOn($addon_name);
|
||||
$oAddOn->proc($oModule, $oModuleInfo);
|
||||
}
|
||||
}
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
/**
|
||||
* @brief constructor
|
||||
**/
|
||||
function AddOnHandler($addon_name) {
|
||||
function AddOn($addon_name) {
|
||||
$this->addon_name = $addon_name;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue