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/branches/1.5.0@8358 201d5d3c-b55e-5fd7-737f-ddc643e51545
35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* @class opageModel
|
|
* @author NHN (developers@xpressengine.com)
|
|
* @brief model class of the opage module
|
|
**/
|
|
|
|
class opageModel extends opage {
|
|
|
|
/**
|
|
* @brief Initialization
|
|
**/
|
|
function init() { }
|
|
|
|
/**
|
|
* @brief Return information on the external page
|
|
* Use a separate model method because external page handles information and configurations of the defaul module either.
|
|
**/
|
|
function getOpage($module_srl) {
|
|
debugPrint('getOpage');
|
|
$oModuleModel = &getModel('module');
|
|
$columnList = array('module_srl');
|
|
$module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl, $columnList);
|
|
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;
|
|
}
|
|
|
|
}
|
|
?>
|