26 if(!is_array($component_names)) $component_names = array();
27 if(!is_array($enables)) $enables = array();
29 $unables = array_diff($component_names, $enables);
30 $componentList = array();
32 foreach($enables as $component_name)
34 $componentList[$component_name] =
'Y';
36 foreach($unables as $component_name)
38 $componentList[$component_name] =
'N';
48 $oEditorController->removeCache($site_module_info->site_srl);
57 $args =
new stdClass();
58 $args->site_srl = $site_srl;
60 foreach($componentList as $componentName => $value)
62 $args->component_name = $componentName;
63 $args->enabled = $value;
75 unset($componentList);
84 $args =
new stdClass();
85 $args->site_srl = $site_srl;
86 $list_order_num =
'30';
87 if(is_array($component_names))
89 foreach($component_names as $name)
91 $args->list_order = $list_order_num;
92 $args->component_name = $name;
106 unset($component_names);
124 $args =
new stdClass;
125 $args->component_name = $component_name;
127 $args->site_srl = (int)$site_module_info->site_srl;
134 $oEditorController->removeCache(
$args->site_srl);
148 $config =
new stdClass;
149 if($configVars->font_defined !=
'Y') $config->font_defined = $configVars->font_defined =
'N';
150 else $config->font_defined =
'Y';
152 if($config->font_defined ==
'Y')
153 $config->content_font = $configVars->content_font_defined;
155 $config->content_font = $configVars->content_font;
157 $config->editor_skin = $configVars->editor_skin;
158 $config->editor_height = $configVars->editor_height;
159 $config->comment_editor_skin = $configVars->comment_editor_skin;
160 $config->comment_editor_height = $configVars->comment_editor_height;
161 $config->content_style = $configVars->content_style;
163 $config->content_font_size= $configVars->content_font_size.
'px';
164 $config->sel_editor_colorset= $configVars->sel_editor_colorset;
165 $config->sel_comment_editor_colorset= $configVars->sel_comment_editor_colorset;
176 if($enabled) $enabled =
'Y';
179 $args =
new stdClass;
180 $args->component_name = $component_name;
181 $args->enabled = $enabled;
182 $args->site_srl = $site_srl;
186 if(
$output->data->count)
return new BaseObject(-1,
'msg_component_is_not_founded');
193 $oEditorController->removeCache($site_srl);
setMessage($message= 'success', $type=NULL)
getController($module_name)
foreach($sitemap as $id=> &$val) $extra_vars
procEditorAdminSetupComponent()
Set components.
procEditorAdminGeneralConfig()
Config components.
setRedirectUrl($url= './', $output=NULL)
editor of the module admin controller class
insertComponent($component_name, $enabled=false, $site_srl=0)
Add a component to DB.
editorListOrder($component_names, $site_srl=0)
list order componet
high class of the editor odule
procEditorAdminCheckUseListOrder()
컴포넌트 사용설정, 목록 순서 변경
executeQuery($query_id, $args=NULL, $arg_columns=NULL)
editorCheckUse($componentList, $site_srl=0)
check use component