mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@864 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5a2be2d812
commit
35b9bb8fd2
28 changed files with 186 additions and 485 deletions
|
|
@ -51,9 +51,8 @@
|
|||
* addons라는 테이블에 애드온의 이름을 등록하는 것으로 활성화를 시키게 된다
|
||||
**/
|
||||
function doActivate($addon) {
|
||||
$oDB = &DB::getInstance();
|
||||
$args->addon = $addon;
|
||||
return $oDB->executeQuery('addon.insertAddon', $args);
|
||||
return executeQuery('addon.insertAddon', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -62,9 +61,8 @@
|
|||
* addons라는 테이블에 애드온의 이름을 제거하는 것으로 비활성화를 시키게 된다
|
||||
**/
|
||||
function doDeactivate($addon) {
|
||||
$oDB = &DB::getInstance();
|
||||
$args->addon = $addon;
|
||||
return $oDB->executeQuery('addon.deleteAddon', $args);
|
||||
return executeQuery('addon.deleteAddon', $args);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,9 +29,6 @@
|
|||
// activated된 애드온 목록을 구함
|
||||
$activated_addons = $this->getActivatedAddons();
|
||||
|
||||
// DB 객체 생성
|
||||
$oDB = &DB::getInstance();
|
||||
|
||||
// 다운받은 애드온과 설치된 애드온의 목록을 구함
|
||||
$searched_list = FileHandler::readDir('./addons');
|
||||
$searched_count = count($searched_list);
|
||||
|
|
@ -109,9 +106,8 @@
|
|||
* @brief 활성화된 애드온 목록을 구해옴
|
||||
**/
|
||||
function getActivatedAddons() {
|
||||
$oDB = &DB::getInstance();
|
||||
$args->list_order = 'addon';
|
||||
$output = $oDB->executeQuery('addon.getAddons', $args);
|
||||
$output = executeQuery('addon.getAddons', $args);
|
||||
if(!$output->data) return array();
|
||||
if(!is_array($output->data)) $output->data = array($output->data);
|
||||
|
||||
|
|
@ -127,9 +123,8 @@
|
|||
* @brief 애드온이 활성화 되어 있는지 체크
|
||||
**/
|
||||
function isActivatedAddon($addon) {
|
||||
$oDB = &DB::getInstance();
|
||||
$args->addon = $addon;
|
||||
$output = $oDB->executeQuery('addon.getAddonIsActivated', $args);
|
||||
$output = executeQuery('addon.getAddonIsActivated', $args);
|
||||
if($output->data->count>0) return true;
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue