mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-13 16:34:52 +09:00
#14 별도의 외부 페이지(opage) 모듈을 만들어서 외부 html/php 문서나 외부 html문서등을 내부에서 사용할 수 있는 모듈 제작
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2600 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7f90125627
commit
dc24001d46
21 changed files with 984 additions and 4 deletions
33
modules/opage/opage.model.php
Normal file
33
modules/opage/opage.model.php
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
/**
|
||||
* @class opageModel
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief opage 모듈의 model 클래스
|
||||
**/
|
||||
|
||||
class opageModel extends opage {
|
||||
|
||||
/**
|
||||
* @brief 초기화
|
||||
**/
|
||||
function init() { }
|
||||
|
||||
/**
|
||||
* @brief 특정 외부 페이지의 정보를 return
|
||||
* 외부 페이지의 경우 기본 모듈의 정보와 설정정보를 함께 다루기 때문에 별도의 model method를 이용하게 한다
|
||||
**/
|
||||
function getOpage($module_srl) {
|
||||
$oModuleModel = &getModel('module');
|
||||
$module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
|
||||
if($module_info->module_srl != $module_srl) return;
|
||||
|
||||
$extra_vars = unserialize($module_info->extra_vars);
|
||||
if($extra_vars) {
|
||||
foreach($extra_vars as $key => $val) $module_info->{$key} = $val;
|
||||
unset($module_info->extra_vars);
|
||||
}
|
||||
return $module_info;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue