mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
issue 49 add opage module and article type
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8491 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f9b695f734
commit
3c313f80a9
31 changed files with 859 additions and 56 deletions
|
|
@ -21,6 +21,12 @@
|
|||
* @brief a method to check if successfully installed
|
||||
**/
|
||||
function checkUpdate() {
|
||||
$output = executeQuery('page.pageTypeOpageCheck');
|
||||
if ($output->toBool() && $output->data) return true;
|
||||
|
||||
$output = executeQuery('page.pageTypeNullCheck');
|
||||
if ($output->toBool() && $output->data) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -28,6 +34,28 @@
|
|||
* @brief Execute update
|
||||
**/
|
||||
function moduleUpdate() {
|
||||
// opage module instance update
|
||||
$output = executeQueryArray('page.pageTypeOpageCheck');
|
||||
if ($output->toBool() && count($output->data) > 0){
|
||||
foreach($output->data as $val){
|
||||
$args->module_srl = $val->module_srl;
|
||||
$args->name = 'page_type';
|
||||
$args->value= 'OUTSIDE';
|
||||
$in_out = executeQuery('page.insertPageType', $args);
|
||||
}
|
||||
$output = executeQuery('page.updateAllOpage');
|
||||
}
|
||||
|
||||
// old page module instance update
|
||||
$output = executeQuery('page.pageTypeNullCheck');
|
||||
if ($output->toBool() && $output->data){
|
||||
foreach($output->data as $val){
|
||||
$args->module_srl = $val->module_srl;
|
||||
$args->name = 'page_type';
|
||||
$args->value= 'WIDGET';
|
||||
$in_out = executeQuery('page.insertPageType', $args);
|
||||
}
|
||||
}
|
||||
return new Object(0,'success_updated');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue