mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-23 12:22:15 +09:00
issue 2119. supporting php 5.4. addon module.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12707 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8a7c28babc
commit
ee9247e866
4 changed files with 309 additions and 103 deletions
|
|
@ -1,10 +1,12 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Admin view class of addon modules
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
*/
|
||||
class addonAdminView extends addon
|
||||
{
|
||||
|
||||
/**
|
||||
* Initialization
|
||||
*
|
||||
|
|
@ -12,7 +14,7 @@ class addonAdminView extends addon
|
|||
*/
|
||||
function init()
|
||||
{
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
$this->setTemplatePath($this->module_path . 'tpl');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -22,10 +24,10 @@ class addonAdminView extends addon
|
|||
*/
|
||||
function dispAddonAdminIndex()
|
||||
{
|
||||
$oAdminModel = &getAdminModel('admin');
|
||||
$oAdminModel = getAdminModel('admin');
|
||||
|
||||
// Add to the list settings
|
||||
$oAddonModel = &getAdminModel('addon');
|
||||
$oAddonModel = getAdminModel('addon');
|
||||
$addon_list = $oAddonModel->getAddonListForSuperAdmin();
|
||||
|
||||
$security = new Security($addon_list);
|
||||
|
|
@ -53,14 +55,18 @@ class addonAdminView extends addon
|
|||
// Wanted to add the requested
|
||||
$selected_addon = Context::get('selected_addon');
|
||||
// Wanted to add the requested information
|
||||
$oAddonModel = &getAdminModel('addon');
|
||||
$oAddonModel = getAdminModel('addon');
|
||||
$addon_info = $oAddonModel->getAddonInfoXml($selected_addon, $site_module_info->site_srl, 'site');
|
||||
Context::set('addon_info', $addon_info);
|
||||
// Get a mid list
|
||||
$oModuleModel = &getModel('module');
|
||||
$oModuleAdminModel = &getAdminModel('module');
|
||||
$oModuleModel = getModel('module');
|
||||
$oModuleAdminModel = getAdminModel('module');
|
||||
|
||||
if($site_module_info->site_srl) $args->site_srl = $site_module_info->site_srl;
|
||||
$args = new stdClass();
|
||||
if($site_module_info->site_srl)
|
||||
{
|
||||
$args->site_srl = $site_module_info->site_srl;
|
||||
}
|
||||
$columnList = array('module_srl', 'module_category_srl', 'mid', 'browser_title');
|
||||
$mid_list = $oModuleModel->getMidList($args, $columnList);
|
||||
// module_category and module combination
|
||||
|
|
@ -79,10 +85,12 @@ class addonAdminView extends addon
|
|||
}
|
||||
else
|
||||
{
|
||||
$module_categories = array();
|
||||
$module_categories[0] = new stdClass();
|
||||
$module_categories[0]->list = $mid_list;
|
||||
}
|
||||
|
||||
Context::set('mid_list',$module_categories);
|
||||
Context::set('mid_list', $module_categories);
|
||||
|
||||
// Template specifies the path and file
|
||||
$this->setTemplateFile('setup_addon');
|
||||
|
|
@ -108,7 +116,7 @@ class addonAdminView extends addon
|
|||
// Wanted to add the requested
|
||||
$selected_addon = Context::get('selected_addon');
|
||||
// Wanted to add the requested information
|
||||
$oAddonModel = &getAdminModel('addon');
|
||||
$oAddonModel = getAdminModel('addon');
|
||||
$addon_info = $oAddonModel->getAddonInfoXml($selected_addon, $site_module_info->site_srl);
|
||||
Context::set('addon_info', $addon_info);
|
||||
// Set the layout to be pop-up
|
||||
|
|
@ -119,6 +127,7 @@ class addonAdminView extends addon
|
|||
$security = new Security();
|
||||
$security->encodeHTML('addon_info.', 'addon_info.author..');
|
||||
}
|
||||
|
||||
}
|
||||
/* End of file addon.admin.view.php */
|
||||
/* Location: ./modules/addon/addon.admin.view.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue