git-svn-id: http://xe-core.googlecode.com/svn/trunk@13 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-02-14 04:55:29 +00:00
parent a314c21ba7
commit 3d61ed75c1
10 changed files with 1686 additions and 1450 deletions

View file

@ -1,23 +1,49 @@
<?php
/**
* @file : index.php
* @author : zero <zero@nzeo.com>
* @desc : 모든 요청(request) 관문으로 main() 역할을
* Main class의 instance를 생성하여 constructor 실행하는 역할만 수행
**/
/**
* @file ./index.php
* @author zero (zero@zeroboard.com)
* @brief 시작 페이지
*
* Request Argument에서 mid, act로 module 객체를 찾아서 생성하고 \n
* 모듈 정보를 세팅함
*
* @mainpage 첫페이지
* @section intro 소개
* zeroboard5는 오픈 프로젝트로 개발되는 오픈 소스입니다.\n
* 자세한 내용은 아래 링크를 참조하세요.
* - 공식홈페이지 : http://www.zeroboard.com
* - 개발자 포험 : http://dev.zeroboard.com
* - 이슈트래킹 : http://www.zeroboard.com/trac
*
**/
// 필요한 설정 파일들을 include
require_once("./config/config.inc.php");
/**
* @brief 필요한 설정 파일들을 include
**/
require_once("./config/config.inc.php");
// Request Method와 설정값들을 세팅
$oContext = &Context::getInstance();
$oContext->init();
/**
* @brief Context 객체를 생성하여 초기화\n
* 모든 Request Argument/ 환경변수등을 세팅
**/
$oContext = &Context::getInstance();
$oContext->init();
// ModuleHandler 호출하여 content 출력
$oModuleHandler = new ModuleHandler();
$oModule = $oModuleHandler->proc();
/**
* @brief ModuleHandler 객체를 생성
**/
$oModuleHandler = new ModuleHandler();
// DisplayHandler로 컨텐츠 출력
$oDisplayHandler = new DisplayHandler();
$oDisplayHandler->printContent($oModule);
/**
* @brief ModuleHandler 객체를 실행하여 요청받은 모듈 객체를\n
* 찾고 모듈 정보를 세팅하는 등의 역할을 한후 모듈 객체를\n
* return받음
**/
$oModule = $oModuleHandler->proc();
/**
* @brief DisplayHandler 객체를 생성하여 모듈의 처리 결과를 출력
**/
$oDisplayHandler = new DisplayHandler();
$oDisplayHandler->printContent($oModule);
?>