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/trunk@1180 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6268b48e0b
commit
e3be6964f7
8 changed files with 78 additions and 8 deletions
|
|
@ -268,5 +268,23 @@
|
|||
$args->module_category_srl = Context::get('module_category_srl');
|
||||
return executeQuery('module.deleteModuleCategory', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 지정된 menu_srl에 속한 mid 의 menu_srl 을 변경
|
||||
**/
|
||||
function updateModuleMenu($mid, $menu_srl) {
|
||||
$args->mid = $mid;
|
||||
$args->menu_srl = $menu_srl;
|
||||
return executeQuery('module.updateModuleMenu', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 지정된 menu_srl에 속한 mid 의 layout_srl을 변경
|
||||
**/
|
||||
function updateModuleLayout($layout_srl, $menu_srls) {
|
||||
$args->layout_srl = $layout_srl;
|
||||
$args->menu_srls = $menu_srls;
|
||||
return executeQuery('module.updateModuleLayout', $args);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
11
modules/module/queries/updateModuleLayout.xml
Normal file
11
modules/module/queries/updateModuleLayout.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="updateModuleLayout" action="update">
|
||||
<tables>
|
||||
<table name="modules" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="layout_srl" var="layout_srl" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="in" column="menu_srl" var="menu_srls" filter="number" notnull="notnull"/>
|
||||
</conditions>
|
||||
</query>
|
||||
11
modules/module/queries/updateModuleMenu.xml
Normal file
11
modules/module/queries/updateModuleMenu.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="updateModuleMenu" action="update">
|
||||
<tables>
|
||||
<table name="modules" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="menu_srl" var="menu_srl" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="mid" var="mid" notnull="notnull"/>
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
<table name="module_layout">
|
||||
<column name="zbxe_url" type="number" size="11" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="menu_srl" type="number" size="11" notnull="notnull" />
|
||||
<column name="layout_srl" type="number" size="11" notnull="notnull" />
|
||||
</table>
|
||||
|
|
@ -2,6 +2,8 @@
|
|||
<column name="module_srl" type="number" size="11" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="module" type="varchar" size="80" notnull="notnull" index="idx_module" />
|
||||
<column name="module_category_srl" type="number" size="11" default="0" index="idx_module_category" />
|
||||
<column name="layout_srl" type="number" size="11" default="0" />
|
||||
<column name="menu_srl" type="number" size="11" default="0" />
|
||||
<column name="mid" type="varchar" size="40" notnull="notnull" unique="unique_mid"/>
|
||||
<column name="skin" type="varchar" size="250" />
|
||||
<column name="browser_title" type="varchar" size="250" notnull="notnull"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue