mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 06:13:32 +09:00
merge sandbox to trunk for 1.4.4
git-svn-id: http://xe-core.googlecode.com/svn/trunk@7723 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
200d63636c
commit
b8299c8a65
683 changed files with 70982 additions and 69716 deletions
|
|
@ -1,71 +1,71 @@
|
|||
<?php
|
||||
/**
|
||||
* @class addon
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief addon 모듈의 high class
|
||||
**/
|
||||
|
||||
class addon extends ModuleObject {
|
||||
|
||||
/**
|
||||
* @brief 설치시 추가 작업이 필요할시 구현
|
||||
**/
|
||||
function moduleInstall() {
|
||||
// 몇가지 애드온을 등록
|
||||
$oAddonController = &getAdminController('addon');
|
||||
$oAddonController->doInsert('autolink');
|
||||
$oAddonController->doInsert('blogapi');
|
||||
$oAddonController->doInsert('counter');
|
||||
$oAddonController->doInsert('member_communication');
|
||||
$oAddonController->doInsert('member_extra_info');
|
||||
$oAddonController->doInsert('mobile');
|
||||
$oAddonController->doInsert('referer');
|
||||
$oAddonController->doInsert('resize_image');
|
||||
$oAddonController->doInsert('openid_delegation_id');
|
||||
$oAddonController->doInsert('point_level_icon');
|
||||
|
||||
// 몇가지 애드온을 기본 활성화 상태로 변경
|
||||
$oAddonController->doActivate('autolink');
|
||||
$oAddonController->doActivate('counter');
|
||||
$oAddonController->doActivate('member_communication');
|
||||
$oAddonController->doActivate('member_extra_info');
|
||||
$oAddonController->doActivate('mobile');
|
||||
$oAddonController->doActivate('referer');
|
||||
$oAddonController->doActivate('resize_image');
|
||||
$oAddonController->makeCacheFile(0);
|
||||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 설치가 이상이 없는지 체크하는 method
|
||||
**/
|
||||
function checkUpdate() {
|
||||
$oDB = &DB::getInstance();
|
||||
if(!$oDB->isColumnExists("addons", "is_used_m")) return true;
|
||||
if(!$oDB->isColumnExists("addons_site", "is_used_m")) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 업데이트 실행
|
||||
**/
|
||||
function moduleUpdate() {
|
||||
$oDB = &DB::getInstance();
|
||||
if(!$oDB->isColumnExists("addons", "is_used_m")) {
|
||||
$oDB->addColumn("addons", "is_used_m", "char", 1, "N", true);
|
||||
}
|
||||
if(!$oDB->isColumnExists("addons_site", "is_used_m")) {
|
||||
$oDB->addColumn("addons_site", "is_used_m", "char", 1, "N", true);
|
||||
}
|
||||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 캐시 파일 재생성
|
||||
**/
|
||||
function recompileCache() {
|
||||
FileHandler::removeFilesInDir('./files/cache/addons');
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
* @class addon
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief addon 모듈의 high class
|
||||
**/
|
||||
|
||||
class addon extends ModuleObject {
|
||||
|
||||
/**
|
||||
* @brief 설치시 추가 작업이 필요할시 구현
|
||||
**/
|
||||
function moduleInstall() {
|
||||
// 몇가지 애드온을 등록
|
||||
$oAddonController = &getAdminController('addon');
|
||||
$oAddonController->doInsert('autolink');
|
||||
$oAddonController->doInsert('blogapi');
|
||||
$oAddonController->doInsert('counter');
|
||||
$oAddonController->doInsert('member_communication');
|
||||
$oAddonController->doInsert('member_extra_info');
|
||||
$oAddonController->doInsert('mobile');
|
||||
$oAddonController->doInsert('referer');
|
||||
$oAddonController->doInsert('resize_image');
|
||||
$oAddonController->doInsert('openid_delegation_id');
|
||||
$oAddonController->doInsert('point_level_icon');
|
||||
|
||||
// 몇가지 애드온을 기본 활성화 상태로 변경
|
||||
$oAddonController->doActivate('autolink');
|
||||
$oAddonController->doActivate('counter');
|
||||
$oAddonController->doActivate('member_communication');
|
||||
$oAddonController->doActivate('member_extra_info');
|
||||
$oAddonController->doActivate('mobile');
|
||||
$oAddonController->doActivate('referer');
|
||||
$oAddonController->doActivate('resize_image');
|
||||
$oAddonController->makeCacheFile(0);
|
||||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 설치가 이상이 없는지 체크하는 method
|
||||
**/
|
||||
function checkUpdate() {
|
||||
$oDB = &DB::getInstance();
|
||||
if(!$oDB->isColumnExists("addons", "is_used_m")) return true;
|
||||
if(!$oDB->isColumnExists("addons_site", "is_used_m")) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 업데이트 실행
|
||||
**/
|
||||
function moduleUpdate() {
|
||||
$oDB = &DB::getInstance();
|
||||
if(!$oDB->isColumnExists("addons", "is_used_m")) {
|
||||
$oDB->addColumn("addons", "is_used_m", "char", 1, "N", true);
|
||||
}
|
||||
if(!$oDB->isColumnExists("addons_site", "is_used_m")) {
|
||||
$oDB->addColumn("addons_site", "is_used_m", "char", 1, "N", true);
|
||||
}
|
||||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 캐시 파일 재생성
|
||||
**/
|
||||
function recompileCache() {
|
||||
FileHandler::removeFilesInDir('./files/cache/addons');
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue