issue 70 data import admin developement.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9019 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-09-05 02:20:54 +00:00
parent 702267086f
commit df61d2913d
6 changed files with 92 additions and 244 deletions

View file

@ -249,12 +249,39 @@
{
$menuSrl = Context::get('menu_srl');
$args->title = Context::get('title');
$childKeyList = Context::get('child_key');
$parentKeyList = Context::get('parent_key');
$itemKeyList = Context::get('item_key');
debugPrint($parentKeyList);
debugPrint($itemKeyList);
// menu name update
$args->menu_srl = $menuSrl;
/*$args->menu_srl = $menuSrl;
$output = executeQuery('menu.updateMenu', $args);
if(!$output->toBool()) return $output;
if(!$output->toBool()) return $output;*/
if(is_array($parentKeyList))
{
$menuList = array();
foreach($parentKeyList AS $key=>$value)
{
if($value == 0) $menuList[$itemKeyList[$key]] = array();
}
}
debugPrint($menuList);
exit;
if(is_array($itemKeyList))
{
foreach($itemKeyList AS $key=>$value)
{
if($parentKeyList[$key] != 0)
{
$menuList[$parentKeyList[$key]][$value] = true;
}
}
}
debugPrint($menuList);
exit;
// menu item sorting
if(is_array($childKeyList))