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@25 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
507b09a62e
commit
c690cff0c8
17 changed files with 1216 additions and 1028 deletions
51
modules/install/install.view.php
Normal file
51
modules/install/install.view.php
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?php
|
||||
/**
|
||||
* @file installView
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief 기본 모듈중의 하나인 install module의 View
|
||||
**/
|
||||
|
||||
class installView extends Module {
|
||||
|
||||
var $default_act = 'viewIntroduce'; ///< 별도의 act가 없으면 기본으로 사용될 act
|
||||
|
||||
var $install_enable = false; ///< 설치 가능한지에 대한 flag
|
||||
|
||||
/**
|
||||
* @brief 초기화
|
||||
**/
|
||||
function init() {
|
||||
// template 경로를 지정
|
||||
$this->setTemplatePath($this->module_path."skins/default");
|
||||
|
||||
// 컨트롤러 생성
|
||||
$oController = getModule('install','controller');
|
||||
|
||||
// 설치 불가능하다면 introduce를 출력
|
||||
if(!$oController->checkInstallEnv()) $this->act = $this->default_act;
|
||||
|
||||
// 설치 가능한 환경이라면 installController::makeDefaultDirectory() 실행
|
||||
else $oController->makeDefaultDirectory();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief license 및 설치 환경에 대한 메세지 보여줌
|
||||
**/
|
||||
function viewIntroduce() {
|
||||
$this->setTemplateFile('disp_license');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DB 정보 입력 화면을 보여줌
|
||||
**/
|
||||
function viewDBInfoForm() {
|
||||
// db_type이 지정되지 않았다면 다시 초기화면 출력
|
||||
if(!Context::get('db_type')) return $this->viewIntroduce();
|
||||
|
||||
// disp_db_info_form.html 파일 출력
|
||||
$tpl_filename = sprintf('db_form.%s', Context::get('db_type'));
|
||||
$this->setTemplateFile($tpl_filename);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue