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

This commit is contained in:
zero 2007-02-21 08:56:19 +00:00
parent 853c469c67
commit 99c88fee14
12 changed files with 60 additions and 16 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<module default_action="dispAdminIndex" management_action="">
<module standalone="true" default_action="dispAdminIndex" management_action="">
<actions>
<action name="dispAdminIndex" type="view" grant="root" />
<action name="dispLogin" type="view" grant="guest" />

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<module default_action="dispContent" management_action="dispAdminContent">
<module standalone="false" default_action="dispContent" management_action="dispAdminContent">
<grants>
<grant name="list" default="guest">
<title xml:lang="ko">목록</title>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<module default_action="dispIntroduce">
<module standalone="true" default_action="dispIntroduce">
<grants />
<actions>
<action name="dispIntroduce" type="view" grant="guest" />

View file

@ -12,6 +12,8 @@
* @brief 초기화
**/
function init() {
// 설치가 되어 있으면 오류
if(Context::isInstalled()) return $this->dispMessage('msg_already_installed');
}
/**

View file

@ -14,6 +14,9 @@
// template 경로를 지정
$this->setTemplatePath($this->module_path."tpl");
// 설치가 되어 있으면 오류
if(Context::isInstalled()) return $this->dispMessage('msg_already_installed');
// 컨트롤러 생성
$oController = &getController('install');

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<module version="0.1" default_action="viewIntroduce" management_action="" >
<module standalone="false" version="0.1" default_action="viewIntroduce" management_action="" >
<actions>
<action name="viewIntroduce" type="view" />
<action name="viewDBInfoForm" type="view" />

View file

@ -11,7 +11,7 @@
* @brief 초기화
**/
function init() {
$this->setTemplatePath(
$this->setTemplatePath($this->module_path.'tpl');
}
/**

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<module default_action="dispContent" management_action="">
<module standalone="false" default_action="dispContent" management_action="">
<actions>
<action name="dispContent" type="view" grant="root" />
</actions>

View file

@ -26,6 +26,7 @@
$xml_obj = XmlParser::loadXmlFile($xml_file);
if(!count($xml_obj->module)) return;
$output->standalone = $xml_obj->module->attrs->standalone=='true'?true:false; ///< 모듈 자체적으로 실행이 가능한지에 대한 값 (기본=false)
$output->default_action = $xml_obj->module->attrs->default_action; ///< 별도의 action이 지정되지 않으면 호출될 action
$output->management_action = $xml_obj->module->attrs->management_action; ///< 관리자용으로 사용될 기본 action