issue add set use mobile value.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12096 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-11-04 08:29:42 +00:00
parent 57cbf7c119
commit f3656f6a06
2 changed files with 25 additions and 0 deletions

View file

@ -54,6 +54,7 @@
<action name="procModuleAdminDeleteLang" type="controller" standalone="true" />
<action name="procModuleAdminGetList" type="controller" standalone="true" />
<action name="procModuleAdminSetDesignInfo" type="controller" />
<action name="procModuleAdminUpdateUseMobile" type="controller" />
<action name="dispModuleChangeLang" type="mobile" />
</actions>

View file

@ -890,5 +890,29 @@
return $output;
}
public function procModuleAdminUpdateUseMobile()
{
$menuItemSrl = Context::get('menu_item_srl');
$useMobile = Context::get('use_mobile');
if(!$menuItemSrl)
{
return $this->stop(-1, 'msg_invalid_request');
}
$oModuleModel = getModel('module');
$moduleInfo = $oModuleModel->getModuleInfoByMenuItemSrl($menuItemSrl);
$useMobile = $useMobile != 'Y' ? 'N' : 'Y';
$moduleInfo->use_mobile = $useMobile;
$oModuleController = getController('module');
$output = $oModuleController->updateModule($moduleInfo);
return $output;
}
}
?>