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

This commit is contained in:
zero 2007-03-07 08:59:25 +00:00
parent 7407e0e16e
commit b22aeaf783
9 changed files with 49 additions and 14 deletions

View file

@ -25,6 +25,18 @@
return array($output->data);
}
/**
* @brief DB 생성된 한개의 레이아웃 정보를 구함
**/
function getLayout($layout_srl) {
$oDB = &DB::getInstance();
$args->layout_srl = $layout_srl;
$output = $oDB->executeQuery('layout.getLayout', $args);
if(!$output->data) return;
return $output->data;
}
/**
* @brief 레이아웃의 경로를 구함
**/
@ -71,7 +83,7 @@
/**
* @brief 모듈의 conf/info.xml 읽어서 정보를 구함
**/
function getLayoutInfoXml($layout) {
function getLayoutInfoXml($layout, $layout_srl = 0) {
// 요청된 모듈의 경로를 구한다. 없으면 return
$layout_path = $this->getLayoutPath($layout);
if(!$layout_path) return;
@ -121,6 +133,11 @@
$obj->id = $item->attrs->id;
$obj->name = $item->name->body;
$obj->maxdepth = $item->maxdepth->body;
$obj->xml_file = sprintf("./files/cache/layout/%s_%s.xml", $layout_srl, $obj->id);
if($layout_srl && !file_exists($obj->xml_file)) {
$buff = "<root />";
FileHandler::writeFile($obj->xml_file, $buff);
}
$layout_info->navigations[] = $obj;
}