mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
member모듈에서 쪽지/친구등의 커뮤니케이션 기능을 communication 모듈로 분리. member_extra_info 애드온에서 쪽지/친구와 관련된 기능을 member_communication 애드온으로 분리
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4226 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f7968229e6
commit
08cee6952c
135 changed files with 1980 additions and 1293 deletions
71
modules/communication/communication.class.php
Normal file
71
modules/communication/communication.class.php
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
<?php
|
||||
/**
|
||||
* @class communication
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief communication module의 high class
|
||||
**/
|
||||
|
||||
class communication extends ModuleObject {
|
||||
|
||||
/**
|
||||
* @brief 설치시 추가 작업이 필요할시 구현
|
||||
**/
|
||||
function moduleInstall() {
|
||||
// 새쪽지 알림을 위한 임시 파일 저장소 생성
|
||||
FileHandler::makeDir('./files/member_extra_info/new_message_flags');
|
||||
|
||||
// action forward에 등록 (관리자 모드에서 사용하기 위함)
|
||||
$oModuleController = &getController('module');
|
||||
$oModuleController->insertActionForward('communication', 'view', 'dispCommunicationAdminConfig');
|
||||
|
||||
$oModuleController->insertActionForward('communication', 'view', 'dispCommunicationMessages');
|
||||
$oModuleController->insertActionForward('communication', 'view', 'dispCommunicationFriend');
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 설치가 이상이 없는지 체크하는 method
|
||||
**/
|
||||
function checkUpdate() {
|
||||
if(!is_dir("./files/member_extra_info/new_message_flags")) return true;
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
|
||||
if(!$oModuleModel->getActionForward('dispCommunicationAdminConfig')) return true;
|
||||
|
||||
if(!$oModuleModel->getActionForward('dispCommunicationMessages')) return true;
|
||||
if(!$oModuleModel->getActionForward('dispCommunicationFriend')) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 업데이트 실행
|
||||
**/
|
||||
function moduleUpdate() {
|
||||
if(!is_dir("./files/member_extra_info/new_message_flags"))
|
||||
FileHandler::makeDir('./files/member_extra_info/new_message_flags');
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
$oModuleController = &getController('module');
|
||||
|
||||
if(!$oModuleModel->getActionForward('dispCommunicationAdminConfig'))
|
||||
$oModuleController->insertActionForward('communication', 'view', 'dispCommunicationAdminConfig');
|
||||
|
||||
if(!$oModuleModel->getActionForward('dispCommunicationMessages'))
|
||||
$oModuleController->insertActionForward('communication', 'view', 'dispCommunicationMessages');
|
||||
|
||||
if(!$oModuleModel->getActionForward('dispCommunicationFriend'))
|
||||
$oModuleController->insertActionForward('communication', 'view', 'dispCommunicationFriend');
|
||||
|
||||
return new Object(0, 'success_updated');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 캐시 파일 재생성
|
||||
**/
|
||||
function recompileCache() {
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue