mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 15:21:40 +09:00
1. 위젯/ 에디터컴포넌트의 코드 컴파일을 Context가 아닌 각 모듈이 trigger로 동작하게 개선 : 관리자 페이지에서 모듈 업데이트 필요 2. IE7에서 버튼 이미지가 어긋나는 문제 수정 3. 페이지 모듈의 캐싱 기능 추가 : 페이지 자체 캐시 가능하도록 함 4. 에디터에서 파일업로드시 파일 크기가 제대로 적용되지 않던 문제 수정 및 파일을 올리는 중에 남은 용량을 체크하여 미리 파일 업로드가 되지 않도록 함 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6103 201d5d3c-b55e-5fd7-737f-ddc643e51545
64 lines
2.1 KiB
PHP
64 lines
2.1 KiB
PHP
<?php
|
|
/**
|
|
* @class widget
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief widget 모듈의 high class
|
|
**/
|
|
|
|
class widget extends ModuleObject {
|
|
|
|
/**
|
|
* @brief 설치시 추가 작업이 필요할시 구현
|
|
**/
|
|
function moduleInstall() {
|
|
// widget 에서 사용할 cache디렉토리 생성
|
|
FileHandler::makeDir('./files/cache/widget');
|
|
FileHandler::makeDir('./files/cache/widget_cache');
|
|
|
|
// widget compile을 위한 display.after 트리거 추가
|
|
$oModuleController = &getController('module');
|
|
$oModuleController->insertTrigger('display', 'widget', 'controller', 'triggerWidgetCompile', 'before');
|
|
|
|
return new Object();
|
|
}
|
|
|
|
/**
|
|
* @brief 설치가 이상이 없는지 체크하는 method
|
|
**/
|
|
function checkUpdate() {
|
|
$oModuleModel = &getModel('module');
|
|
|
|
// widget compile을 위한 display.after 트리거 추가 (2009. 04. 14)
|
|
if(!$oModuleModel->getTrigger('display', 'widget', 'controller', 'triggerWidgetCompile', 'before')) return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* @brief 업데이트 실행
|
|
**/
|
|
function moduleUpdate() {
|
|
$oModuleModel = &getModel('module');
|
|
$oModuleController = &getController('module');
|
|
|
|
// widget compile을 위한 display.after 트리거 추가 (2009. 04. 14)
|
|
if(!$oModuleModel->getTrigger('display', 'widget', 'controller', 'triggerWidgetCompile', 'before')) {
|
|
$oModuleController->insertTrigger('display', 'widget', 'controller', 'triggerWidgetCompile', 'before');
|
|
}
|
|
|
|
return new Object(0, 'success_updated');
|
|
}
|
|
|
|
/**
|
|
* @brief 캐시 파일 재생성
|
|
**/
|
|
function recompileCache() {
|
|
// widget 정보를 담은 캐시 파일 삭제
|
|
FileHandler::removeFilesInDir("./files/cache/widget");
|
|
|
|
// widget 생성 캐시 파일 삭제
|
|
FileHandler::removeFilesInDir("./files/cache/widget_cache");
|
|
}
|
|
|
|
}
|
|
?>
|