22 if(!preg_match(
'/^[a-z]{1}([a-z0-9_]+)$/i',$id))
return true;
28 if(in_array($id, $dirs))
return true;
30 $args =
new stdClass();
32 $args->site_srl = $site_srl;
34 if(
$output->data->count)
return true;
41 if(
$output->data->count)
return true;
52 $args =
new stdClass();
53 $args->site_srl = $site_srl;
60 $args =
new stdClass();
61 $args->domain = $domain;
72 $args =
new stdClass();
75 $this->applyDefaultSkin(
$output->data);
85 if($default_url && substr_compare($default_url,
'/', -1) === 0) $default_url = substr($default_url, 0, -1);
88 if($request_url && substr_compare($request_url,
'/', -1) === 0) $request_url = substr($request_url, 0, -1);
90 $default_url_parse = parse_url($default_url);
91 $request_url_parse = parse_url($request_url);
98 if($default_url && $default_url_parse[
'host'] != $request_url_parse[
'host'])
100 $hostname = $request_url_parse[
'host'];
101 $path = $request_url_parse[
'path'];
102 $port = $request_url_parse[
'port'];
103 if(strlen($path) >= 1 && substr_compare($path,
'/', -1) === 0) $path = substr($path, 0, -1);
105 $domain = sprintf(
'%s%s%s', $hostname, $port && ($port != 80 )?
':'.$port :
'', $path);
110 if(!$vid) $vid =
$mid;
122 if($oCacheHandler->isSupport())
124 $object_key =
'site_info:' . md5($domain);
125 $domain_cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
126 $site_info = $oCacheHandler->get($domain_cache_key);
129 if($site_info ===
false)
131 $args =
new stdClass();
132 $args->domain = $domain;
136 if($oCacheHandler->isSupport()) $oCacheHandler->put($domain_cache_key, $site_info);
139 if($site_info && $vid)
142 if(strtolower(
$mid)==strtolower($site_info->domain))
Context::set(
'mid', $site_info->mid,
true);
144 if(!$site_info || !$site_info->domain) { $domain =
''; unset($site_info); }
151 if($oCacheHandler->isSupport())
153 $object_key =
'default_site';
154 $default_site_cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
155 $site_info = $oCacheHandler->get($default_site_cache_key);
158 if($site_info ===
false)
160 $args =
new stdClass();
168 if(!$oDB->isTableExists(
'sites')) $oDB->createTableByXmlFile(
_XE_PATH_.
'modules/module/schemas/sites.xml');
169 if(!$oDB->isTableExists(
'sites'))
return;
172 $mid_output = $oDB->executeQuery(
'module.getDefaultMidInfo',
$args);
175 $url_info = parse_url($domain);
176 $domain = $url_info[
'host'].( (!empty($url_info[
'port'])&&$url_info[
'port']!=80)?
':'.$url_info[
'port']:
'').$url_info[
'path'];
180 $site_args->index_module_srl = $mid_output->data->module_srl;
182 $site_args->default_language = $db_info->lang_type;
196 if($oCacheHandler->isSupport()) $oCacheHandler->put($default_site_cache_key, $site_info);
200 if(!$site_info->module_srl)
return $site_info;
201 if(is_array($site_info) && $site_info->data[0]) $site_info = $site_info[0];
210 if(!
$mid || (
$mid && !preg_match(
"/^[a-z][a-z0-9_]+$/i",
$mid)))
215 $args =
new stdClass();
217 $args->site_srl = (int)$site_srl;
223 if($oCacheHandler->isSupport())
225 $object_key =
'module_srl:'.$mid.
'_'.$site_srl;
226 $module_srl_cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
227 $module_srl = $oCacheHandler->get($module_srl_cache_key);
231 $module_info_cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
232 $module_info = $oCacheHandler->get($module_info_cache_key);
240 if($oCacheHandler->isSupport())
242 $oCacheHandler->put($module_srl_cache_key,
$module_info->module_srl);
245 $module_info_cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
246 $oCacheHandler->put($module_info_cache_key,
$module_info);
265 $menuItemSrl = (!$menuItemSrl) ? $menu_item_srl : $menuItemSrl;
269 $this->
stop(-1,
'msg_invalid_request');
273 $args =
new stdClass();
274 $args->menu_item_srl = $menuItemSrl;
286 $moduleInfo->designSettings->layout =
new stdClass();
287 $moduleInfo->designSettings->skin =
new stdClass();
296 $layoutInfoPc = $layoutSrlPc ? $oLayoutModel->getLayoutRawData($layoutSrlPc, array(
'title')) : NULL;
297 $layoutInfoMobile = $layoutSrlMobile ? $oLayoutModel->getLayoutRawData($layoutSrlMobile, array(
'title')) : NULL;
299 $skinInfoMobile = $this->
loadSkinInfo(Modulehandler::getModulePath(
$moduleInfo->module), $skinNameMobile,
'm.skins');
302 $skinInfoPc =
new stdClass();
303 $skinInfoPc->title = $skinNamePc;
307 $skinInfoMobile =
new stdClass();
308 $skinInfoMobile->title = $skinNameMobile;
312 $moduleInfo->designSettings->layout->pc = $layoutInfoPc->title;
314 $moduleInfo->designSettings->layout->mobile = $layoutInfoMobile->title;
316 $moduleInfo->designSettings->skin->pc = $skinInfoPc->title;
318 $moduleInfo->designSettings->skin->mobile = $skinInfoMobile->title;
324 if($oCacheHandler->isSupport())
326 $object_key =
'module_srl:'.$mid.
'_'.$site_srl;
327 $module_srl_cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
328 $module_srl = $oCacheHandler->get($module_srl_cache_key);
332 $module_info_cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
333 $mid_info = $oCacheHandler->get($module_info_cache_key);
336 if($mid_info ===
false)
338 $oCacheHandler->put($module_srl_cache_key,
$output->data->module_srl);
340 $object_key =
'mid_info:' .
$output->data->module_srl;
341 $module_info_cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
342 $oCacheHandler->put($module_info_cache_key,
$moduleInfo);
346 $mid_info->designSettings =
$moduleInfo->designSettings;
372 if($oCacheHandler->isSupport())
375 $cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
376 $mid_info = $oCacheHandler->get($cache_key);
379 if($mid_info ===
false)
382 $args =
new stdClass();
388 $this->applyDefaultSkin($mid_info);
389 if($oCacheHandler->isSupport()) $oCacheHandler->put($cache_key, $mid_info);
392 if($mid_info && count($columnList))
395 foreach($mid_info as $key => $item)
397 if(in_array($key, $columnList))
434 $args =
new stdClass;
441 for($i=0;$i<$count;$i++)
443 $modules[] =
$output->data[$i];
453 if(is_array($module_srls)) $module_srls = implode(
',',$module_srls);
454 $args =
new stdClass();
455 $args->module_srls = $module_srls;
470 $module_srls = array();
471 foreach($target_module_info as $key => $val)
475 $module_srls[] = $val->module_srl;
481 foreach($target_module_info as $key => $val)
486 if($target_module_info[$key]->{$k})
continue;
487 $target_module_info[$key]->{$k} = $v;
492 return $target_module_info[0];
502 if($oCacheHandler->isSupport())
504 if(count(
$args) === 1 && isset(
$args->site_srl))
506 $object_key =
'module:mid_list_' .
$args->site_srl;
507 $cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
508 $list = $oCacheHandler->get($cache_key);
514 if($oCacheHandler->isSupport() && count(
$args) === 1 && isset(
$args->site_srl))
516 $columnList = array();
523 if($oCacheHandler->isSupport() && count(
$args) === 1 && isset(
$args->site_srl))
525 $oCacheHandler->put($cache_key, $list);
530 if(!is_array($list)) $list = array($list);
532 foreach($list as $val)
534 $mid_list[$val->mid] = $val;
559 if($mid && !is_array($mid)) $mid = explode(
',',$mid);
560 if(is_array($mid)) $mid =
"'".implode(
"','",$mid).
"'";
564 $args =
new stdClass;
566 if($site_module_info)
$args->site_srl = $site_module_info->site_srl;
572 if(!is_array($list)) $list = array($list);
574 foreach($list as $key => $val)
576 $module_srl_list[] = $val->module_srl;
579 return $module_srl_list;
587 $action_forward =
false;
590 if($oCacheHandler->isSupport())
592 $cache_key =
'action_forward';
593 $action_forward = $oCacheHandler->get($cache_key);
597 if($action_forward ===
false)
599 $args =
new stdClass();
601 if(!
$output->toBool())
return new stdClass;
604 $action_forward = array();
605 foreach(
$output->data as $item)
607 $action_forward[$item->act] = $item;
610 if($oCacheHandler->isSupport())
612 $oCacheHandler->put($cache_key, $action_forward);
616 if($action_forward[$act])
618 return $action_forward[$act];
622 return new stdClass();
631 if(is_null(
$GLOBALS[
'__triggers__']))
635 if($oCacheHandler->isSupport())
637 $cache_key =
'triggers';
638 $triggers = $oCacheHandler->get($cache_key);
640 if($triggers === FALSE)
644 if(
$output->toBool() && $oCacheHandler->isSupport())
646 $oCacheHandler->put($cache_key, $triggers);
649 foreach($triggers as $item)
651 $GLOBALS[
'__triggers__'][$item->trigger_name][$item->called_position][] = $item;
655 return $GLOBALS[
'__triggers__'][$trigger_name][$called_position];
661 function getTrigger($trigger_name, $module, $type, $called_method, $called_position)
663 $triggers = $this->getTriggers($trigger_name, $called_position);
665 if($triggers && is_array($triggers))
667 foreach($triggers as $item)
669 if($item->module == $module && $item->type == $type && $item->called_method == $called_method)
684 $key = $parent_module.
'.'.$kind.
'.'.$type;
686 $module_extend_info = $this->loadModuleExtends();
687 if(array_key_exists($key, $module_extend_info))
689 return $module_extend_info[$key];
700 $cache_file =
'./files/config/module_extend.php';
703 if(!isset(
$GLOBALS[
'__MODULE_EXTEND__']))
714 $arr[] = sprintf(
"'%s.%s.%s' => '%s'", $v->parent_module, $v->kind, $v->type, $v->extend_module);
718 $str =
'<?PHP return array(%s); ?>';
719 $str = sprintf($str, join(
',',$arr));
725 if(file_exists($cache_file))
727 $GLOBALS[
'__MODULE_EXTEND__'] = include($cache_file);
731 $GLOBALS[
'__MODULE_EXTEND__'] = array();
735 return $GLOBALS[
'__MODULE_EXTEND__'];
745 if(!$module_path)
return;
747 $xml_file = sprintf(
"%s/conf/info.xml", $module_path);
748 if(!file_exists($xml_file))
return;
751 $tmp_xml_obj = $oXmlParser->loadXmlFile($xml_file);
752 $xml_obj = $tmp_xml_obj->module;
754 if(!$xml_obj)
return;
758 if($xml_obj->version && $xml_obj->attrs->version ==
'0.2')
762 $module_info->description = $xml_obj->description->body;
767 sscanf($xml_obj->date->body,
'%d-%d-%d', $date_obj->y, $date_obj->m, $date_obj->d);
768 $module_info->date = sprintf(
'%04d%02d%02d', $date_obj->y, $date_obj->m, $date_obj->d);
770 $module_info->license_link = $xml_obj->license->attrs->link;
772 if(!is_array($xml_obj->author)) $author_list[] = $xml_obj->author;
773 else $author_list = $xml_obj->author;
775 foreach($author_list as $author)
777 $author_obj =
new stdClass();
778 $author_obj->name = $author->name->body;
779 $author_obj->email_address = $author->attrs->email_address;
780 $author_obj->homepage = $author->attrs->link;
788 $module_info->description = $xml_obj->author->description->body;
792 sscanf($xml_obj->author->attrs->date,
'%d. %d. %d', $date_obj->y, $date_obj->m, $date_obj->d);
793 $module_info->date = sprintf(
'%04d%02d%02d', $date_obj->y, $date_obj->m, $date_obj->d);
794 $author_obj =
new stdClass();
795 $author_obj->name = $xml_obj->author->name->body;
796 $author_obj->email_address = $xml_obj->author->attrs->email_address;
797 $author_obj->homepage = $xml_obj->author->attrs->link;
801 $action_info = $this->getModuleActionXml($module);
802 $module_info->admin_index_act = $action_info->admin_index_act;
803 $module_info->default_index_act = $action_info->default_index_act;
804 $module_info->setup_index_act = $action_info->setup_index_act;
805 $module_info->simple_setup_index_act = $action_info->simple_setup_index_act;
820 if(!$class_path)
return;
823 $xml_file = sprintf(
"%sconf/module.xml", $class_path);
824 if(!file_exists($xml_file))
return;
830 if(!file_exists($cache_file) || filemtime($cache_file) < filemtime($xml_file) || $re_cache)
832 $info =
new stdClass();
834 $buff[] =
'<?php if(!defined("__XE__")) exit();';
835 $buff[] =
'$info = new stdClass;';
836 $buff[
'default_index_act'] =
'$info->default_index_act = \'%s\';';
837 $buff[
'setup_index_act'] =
'$info->setup_index_act=\'%s\';';
838 $buff[
'simple_setup_index_act'] =
'$info->simple_setup_index_act=\'%s\';';
839 $buff[
'admin_index_act'] =
'$info->admin_index_act = \'%s\';';
843 if(!count($xml_obj->module))
return;
845 $grants = $xml_obj->module->grants->grant;
846 $permissions = $xml_obj->module->permissions->permission;
847 $menus = $xml_obj->module->menus->menu;
848 $actions = $xml_obj->module->actions->action;
850 $default_index = $admin_index =
'';
855 if(is_array($grants)) $grant_list = $grants;
856 else $grant_list[] = $grants;
858 $info->grant =
new stdClass();
859 $buff[] =
'$info->grant = new stdClass;';
860 foreach($grant_list as $grant)
862 $name = $grant->attrs->name;
863 $default = $grant->attrs->default?$grant->attrs->default:
'guest';
864 $title = $grant->title->body;
866 $info->grant->{$name} =
new stdClass();
867 $info->grant->{$name}->title = $title;
868 $info->grant->{$name}->default = $default;
870 $buff[] = sprintf(
'$info->grant->%s = new stdClass;', $name);
871 $buff[] = sprintf(
'$info->grant->%s->title=\'%s\';', $name, $title);
872 $buff[] = sprintf(
'$info->grant->%s->default=\'%s\';', $name, $default);
878 if(is_array($permissions)) $permission_list = $permissions;
879 else $permission_list[] = $permissions;
881 $buff[] =
'$info->permission = new stdClass;';
883 $info->permission =
new stdClass();
884 foreach($permission_list as $permission)
886 $action = $permission->attrs->action;
887 $target = $permission->attrs->target;
889 $info->permission->{$action} = $target;
891 $buff[] = sprintf(
'$info->permission->%s = \'%s\';', $action, $target);
897 if(is_array($menus)) $menu_list = $menus;
898 else $menu_list[] = $menus;
900 $buff[] =
'$info->menu = new stdClass;';
901 $info->menu =
new stdClass();
902 foreach($menu_list as $menu)
904 $menu_name = $menu->attrs->name;
905 $menu_title = is_array($menu->title) ? $menu->title[0]->body : $menu->title->body;
906 $menu_type = $menu->attrs->type;
908 $info->menu->{$menu_name} =
new stdClass();
909 $info->menu->{$menu_name}->title = $menu_title;
910 $info->menu->{$menu_name}->acts = array();
911 $info->menu->{$menu_name}->type = $menu_type;
913 $buff[] = sprintf(
'$info->menu->%s = new stdClass;', $menu_name);
914 $buff[] = sprintf(
'$info->menu->%s->title=\'%s\';', $menu_name, $menu_title);
915 $buff[] = sprintf(
'$info->menu->%s->type=\'%s\';', $menu_name, $menu_type);
922 if(is_array($actions)) $action_list = $actions;
923 else $action_list[] = $actions;
925 $buff[] =
'$info->action = new stdClass;';
926 $info->action =
new stdClass();
927 foreach($action_list as $action)
929 $name = $action->attrs->name;
931 $type = $action->attrs->type;
932 $grant = $action->attrs->grant?$action->attrs->grant:
'guest';
933 $standalone = $action->attrs->standalone==
'false'?
'false':
'true';
934 $ruleset = $action->attrs->ruleset?$action->attrs->ruleset:
'';
935 $method = $action->attrs->method?$action->attrs->method:
'';
936 $check_csrf = $action->attrs->check_csrf==
'false'?
'false':
'true';
937 $meta_noindex = $action->attrs->{
'meta-noindex'} ===
'true' ?
'true' :
'false';
939 $index = $action->attrs->index;
940 $admin_index = $action->attrs->admin_index;
941 $setup_index = $action->attrs->setup_index;
942 $simple_setup_index = $action->attrs->simple_setup_index;
943 $menu_index = $action->attrs->menu_index;
945 $info->action->{$name} =
new stdClass();
946 $info->action->{$name}->type = $type;
947 $info->action->{$name}->grant = $grant;
948 $info->action->{$name}->standalone = $standalone;
949 $info->action->{$name}->ruleset = $ruleset;
950 $info->action->{$name}->method = $method;
951 $info->action->{$name}->check_csrf = $check_csrf;
952 $info->action->{$name}->meta_noindex = $meta_noindex;
953 if($action->attrs->menu_name)
955 if($menu_index ==
'true')
957 $info->menu->{$action->attrs->menu_name}->index = $name;
958 $buff[] = sprintf(
'$info->menu->%s->index=\'%s\';', $action->attrs->menu_name, $name);
960 if(is_array($info->menu->{$action->attrs->menu_name}->acts))
962 $info->menu->{$action->attrs->menu_name}->acts[] = $name;
963 $currentKey = array_search($name, $info->menu->{$action->attrs->menu_name}->acts);
966 $buff[] = sprintf(
'$info->menu->%s->acts[%d]=\'%s\';', $action->attrs->menu_name, $currentKey, $name);
970 $buff[] = sprintf(
'$info->action->%s = new stdClass;', $name);
971 $buff[] = sprintf(
'$info->action->%s->type=\'%s\';', $name, $type);
972 $buff[] = sprintf(
'$info->action->%s->grant=\'%s\';', $name, $grant);
973 $buff[] = sprintf(
'$info->action->%s->standalone=\'%s\';', $name, $standalone);
974 $buff[] = sprintf(
'$info->action->%s->ruleset=\'%s\';', $name, $ruleset);
975 $buff[] = sprintf(
'$info->action->%s->method=\'%s\';', $name, $method);
976 $buff[] = sprintf(
'$info->action->%s->check_csrf=\'%s\';', $name, $check_csrf);
977 $buff[] = sprintf(
'$info->action->%s->meta_noindex=\'%s\';', $name, $meta_noindex);
981 $default_index_act = $name;
982 $info->default_index_act = $name;
984 if($admin_index==
'true')
986 $admin_index_act = $name;
987 $info->admin_index_act = $name;
989 if($setup_index==
'true')
991 $setup_index_act = $name;
992 $info->setup_index_act = $name;
994 if($simple_setup_index==
'true')
996 $simple_setup_index_act = $name;
997 $info->simple_setup_index_act = $name;
1001 $buff[
'default_index_act'] = sprintf($buff[
'default_index_act'], $default_index_act);
1002 $buff[
'setup_index_act'] = sprintf($buff[
'setup_index_act'], $setup_index_act);
1003 $buff[
'simple_setup_index_act'] = sprintf($buff[
'simple_setup_index_act'], $simple_setup_index_act);
1004 $buff[
'admin_index_act'] = sprintf($buff[
'admin_index_act'], $admin_index_act);
1006 $buff[] =
'return $info;';
1008 $buff = implode(PHP_EOL, $buff);
1015 if(file_exists($cache_file))
return include($cache_file);
1026 if($module ==
'ARTICLE')
1034 $dir = ($skinType ==
'M') ?
'm.skins' :
'skins';
1035 $skin_list = $this->getSkins($path, $dir);
1037 $this->add(
'skin_info_list', $skin_list);
1046 if(substr($path, -1) ==
'/')
1048 $path = substr($path, 0, -1);
1051 $skin_path = sprintf(
"%s/%s/", $path, $dir);
1053 if(!count($list))
return;
1057 foreach($list as $skin_name)
1059 if(!is_dir($skin_path . $skin_name))
1064 $skin_info = $this->loadSkinInfo($path, $skin_name, $dir);
1067 $skin_info =
new stdClass();
1068 $skin_info->title = $skin_name;
1071 $skin_list[$skin_name] = $skin_info;
1074 $tmpPath = strtr($path, array(
'/' =>
' '));
1075 $tmpPath = trim($tmpPath);
1076 $module = array_pop(explode(
' ', $tmpPath));
1081 $themesInfo = $oAdminModel->getThemeList();
1083 foreach($themesInfo as $themeName => $info)
1085 $skinInfos = $info->skin_infos;
1086 if(isset($skinInfos[$module]) && $skinInfos[$module]->is_theme)
1088 $themeSkinInfo =
$GLOBALS[
'__ThemeModuleSkin__'][$module][
'skins'][$skinInfos[$module]->name];
1089 $skin_list[$skinInfos[$module]->name] = $themeSkinInfo;
1096 $installedMenuTypes = $oMenuAdminModel->getModuleListInSitemap($siteInfo->site_srl);
1097 $moduleName = $module;
1098 if($moduleName ===
'page')
1100 $moduleName =
'ARTICLE';
1102 if(array_key_exists($moduleName, $installedMenuTypes))
1112 $defaultSkinName = $this->getModuleDefaultSkin($module, $type, $site_info->site_srl);
1114 if(isset($defaultSkinName))
1116 $defaultSkinInfo = $this->loadSkinInfo($path, $defaultSkinName, $dir);
1118 $useDefault =
new stdClass();
1119 $useDefault->title =
Context::getLang(
'use_site_default_skin') .
' (' . $defaultSkinInfo->title .
')';
1121 $useDefaultList[
'/USE_DEFAULT/'] = $useDefault;
1123 $skin_list = array_merge($useDefaultList, $skin_list);
1136 if(substr($path,-1)!=
'/') $path .=
'/';
1137 $skin_xml_file = sprintf(
"%s%s/%s/skin.xml", $path, $dir, $skin);
1138 if(!file_exists($skin_xml_file))
return;
1141 $_xml_obj = $oXmlParser->loadXmlFile($skin_xml_file);
1143 if(!$_xml_obj->skin)
return;
1144 $xml_obj = $_xml_obj->skin;
1146 $skin_info =
new stdClass();
1147 $skin_info->title = $xml_obj->title->body;
1149 if($xml_obj->version && $xml_obj->attrs->version ==
'0.2')
1152 sscanf($xml_obj->date->body,
'%d-%d-%d', $date_obj->y, $date_obj->m, $date_obj->d);
1153 $skin_info->version = $xml_obj->version->body;
1154 $skin_info->date = sprintf(
'%04d%02d%02d', $date_obj->y, $date_obj->m, $date_obj->d);
1155 $skin_info->homepage = $xml_obj->link->body;
1156 $skin_info->license = $xml_obj->license->body;
1157 $skin_info->license_link = $xml_obj->license->attrs->link;
1158 $skin_info->description = $xml_obj->description->body;
1160 if(!is_array($xml_obj->author)) $author_list[] = $xml_obj->author;
1161 else $author_list = $xml_obj->author;
1163 foreach($author_list as $author)
1165 $author_obj =
new stdClass();
1166 $author_obj->name = $author->name->body;
1167 $author_obj->email_address = $author->attrs->email_address;
1168 $author_obj->homepage = $author->attrs->link;
1169 $skin_info->author[] = $author_obj;
1172 if($xml_obj->extra_vars)
1174 $extra_var_groups = $xml_obj->extra_vars->group;
1175 if(!$extra_var_groups) $extra_var_groups = $xml_obj->extra_vars;
1176 if(!is_array($extra_var_groups)) $extra_var_groups = array($extra_var_groups);
1178 foreach($extra_var_groups as $group)
1185 if(!is_array($group->var))
$extra_vars = array($group->var);
1189 $obj =
new stdClass();
1190 if(!$val->attrs->type) { $val->attrs->type =
'text'; }
1192 $obj->group = $group->title->body;
1193 $obj->name = $val->attrs->name;
1194 $obj->title = $val->title->body;
1195 $obj->type = $val->attrs->type;
1196 $obj->description = $val->description->body;
1197 $obj->value = $extra_vals->{
$obj->name};
1198 $obj->default = $val->attrs->default;
1199 if(strpos(
$obj->value,
'|@|') !=
false) {
$obj->value = explode(
'|@|',
$obj->value); }
1200 if(
$obj->type ==
'mid_list' && !is_array(
$obj->value)) {
$obj->value = array(
$obj->value); }
1202 if(is_array($val->options))
1204 $option_count = count($val->options);
1206 for($i = 0; $i < $option_count; $i++)
1208 $obj->options[$i] =
new stdClass();
1209 $obj->options[$i]->title = $val->options[$i]->title->body;
1210 $obj->options[$i]->value = $val->options[$i]->attrs->value;
1215 $obj->options[0] =
new stdClass();
1216 $obj->options[0]->title = $val->options->title->body;
1217 $obj->options[0]->value = $val->options->attrs->value;
1220 $skin_info->extra_vars[] =
$obj;
1228 sscanf($xml_obj->maker->attrs->date,
'%d-%d-%d', $date_obj->y, $date_obj->m, $date_obj->d);
1230 $skin_info->version = $xml_obj->version->body;
1231 $skin_info->date = sprintf(
'%04d%02d%02d', $date_obj->y, $date_obj->m, $date_obj->d);
1232 $skin_info->homepage = $xml_obj->link->body;
1233 $skin_info->license = $xml_obj->license->body;
1234 $skin_info->license_link = $xml_obj->license->attrs->link;
1235 $skin_info->description = $xml_obj->maker->description->body;
1237 $skin_info->author[0] =
new stdClass();
1238 $skin_info->author[0]->name = $xml_obj->maker->name->body;
1239 $skin_info->author[0]->email_address = $xml_obj->maker->attrs->email_address;
1240 $skin_info->author[0]->homepage = $xml_obj->maker->attrs->link;
1242 $extra_var_groups = $xml_obj->extra_vars->group;
1243 if(!$extra_var_groups) $extra_var_groups = $xml_obj->extra_vars;
1244 if(!is_array($extra_var_groups)) $extra_var_groups = array($extra_var_groups);
1246 foreach($extra_var_groups as $group)
1259 $group = $group->title->body;
1260 $name = $var->attrs->name;
1261 $type = $var->attrs->type;
1262 $title = $var->title->body;
1263 $description = $var->description->body;
1265 if(is_array($var->default))
1267 $option_count = count($var->default);
1269 for($i = 0; $i < $option_count; $i++)
1271 $options[$i]->title = $var->default[$i]->body;
1272 $options[$i]->value = $var->default[$i]->body;
1277 $options[0]->title = $var->default->body;
1278 $options[0]->value = $var->default->body;
1281 $width = $var->attrs->width;
1282 $height = $var->attrs->height;
1285 $obj->group = $group;
1286 $obj->title = $title;
1287 $obj->description = $description;
1290 $obj->options = $options;
1291 $obj->width = $width;
1292 $obj->height = $height;
1293 $obj->default = $options[0]->value;
1295 $skin_info->extra_vars[] =
$obj;
1302 $colorset = $xml_obj->colorset->color;
1305 if(!is_array($colorset)) $colorset = array($colorset);
1307 foreach($colorset as $color)
1309 $name = $color->attrs->name;
1310 $title = $color->title->body;
1311 $screenshot = $color->attrs->src;
1314 $screenshot = sprintf(
"%s%s/%s/%s", $path, $dir, $skin, $screenshot);
1315 if(!file_exists($screenshot)) $screenshot =
"";
1317 else $screenshot =
"";
1319 $obj =
new stdClass();
1321 $obj->title = $title;
1322 $obj->screenshot = $screenshot;
1323 $skin_info->colorset[] =
$obj;
1327 if($xml_obj->menus->menu)
1329 $menus = $xml_obj->menus->menu;
1330 if(!is_array($menus)) $menus = array($menus);
1332 $menu_count = count($menus);
1333 $skin_info->menu_count = $menu_count;
1334 for($i=0;$i<$menu_count;$i++)
1338 $obj->name = $menus[$i]->attrs->name;
1339 if($menus[$i]->attrs->default ==
"true")
$obj->default =
true;
1340 $obj->title = $menus[$i]->title->body;
1341 $obj->maxdepth = $menus[$i]->maxdepth->body;
1343 $skin_info->menu->{
$obj->name} =
$obj;
1347 $thumbnail = sprintf(
"%s%s/%s/thumbnail.png", $path, $dir, $skin);
1348 $skin_info->thumbnail = (file_exists($thumbnail))?$thumbnail:null;
1357 $args =
new stdClass;
1358 $args->site_srl = $site_srl;
1359 if(!is_null($module))
$args->module = $module;
1373 if($oCacheHandler->isSupport())
1375 $object_key =
'module_config:' . $module .
'_' . $site_srl;
1376 $cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
1377 $config = $oCacheHandler->get($cache_key);
1380 if($config ===
false)
1382 if(!
$GLOBALS[
'__ModuleConfig__'][$site_srl][$module])
1384 $args =
new stdClass();
1385 $args->module = $module;
1386 $args->site_srl = $site_srl;
1388 if(
$output->data->config) $config = unserialize(
$output->data->config);
1389 else $config = null;
1392 if($oCacheHandler->isSupport())
1394 $oCacheHandler->put($cache_key, $config);
1396 $GLOBALS[
'__ModuleConfig__'][$site_srl][$module] = $config;
1398 return $GLOBALS[
'__ModuleConfig__'][$site_srl][$module];
1413 if($oCacheHandler->isSupport())
1415 $object_key =
'module_part_config:'.$module.
'_'.
$module_srl;
1416 $cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
1417 $config = $oCacheHandler->get($cache_key);
1420 if($config ===
false)
1424 $args =
new stdClass();
1425 $args->module = $module;
1428 if(
$output->data->config) $config = unserialize(
$output->data->config);
1429 else $config = null;
1432 if($oCacheHandler->isSupport())
1434 $oCacheHandler->put($cache_key, $config);
1449 $args =
new stdClass();
1450 $args->module = $module;
1451 if($site_srl)
$args->site_srl = $site_srl;
1455 foreach(
$output->data as $key => $val)
1457 $result[$val->module_srl] = unserialize($val->config);
1467 $args =
new stdClass();
1468 $args->moduleCategorySrl = $moduleCategorySrl;
1474 if(!is_array($list)) $list = array($list);
1476 foreach($list as $val)
1478 $category_list[$val->module_category_srl] = $val;
1480 return $category_list;
1489 $args =
new stdClass;
1490 $args->module_category_srl = $module_category_srl;
1503 $searched_count = count($searched_list);
1504 if(!$searched_count)
return;
1505 sort($searched_list);
1507 for($i=0;$i<$searched_count;$i++)
1510 $module_name = $searched_list[$i];
1514 $info = $this->getModuleInfoXml($module_name);
1517 if(!isset($info))
continue;
1518 $info->module = $module_name;
1519 $info->created_table_count = $created_table_count;
1520 $info->table_count = $table_count;
1521 $info->path = $path;
1522 $info->admin_index_act = $info->admin_index_act;
1537 $table_count = count($tmp_files);
1539 $created_table_count = 0;
1540 for($j=0;$j<count($tmp_files);$j++)
1542 list($table_name) = explode(
".",$tmp_files[$j]);
1543 if($oDB->isTableExists($table_name)) $created_table_count ++;
1546 if($table_count > $created_table_count)
return true;
1555 $oDummy =
getModule($module_name,
'class');
1556 if($oDummy && method_exists($oDummy,
"checkUpdate"))
1558 return $oDummy->checkUpdate();
1570 if(!is_array($update_id)) $update_id = array($update_id);
1572 $args =
new stdClass();
1573 $args->update_id = implode(
',', $update_id);
1576 if(!!
$output->error)
return false;
1578 if(count($update_id) === count(
$output->data))
return false;
1592 sort($searched_list);
1594 $searched_count = count($searched_list);
1595 if(!$searched_count)
return;
1597 for($i=0;$i<$searched_count;$i++)
1600 $module_name = $searched_list[$i];
1607 $table_count = count($tmp_files);
1609 $created_table_count = 0;
1610 for($j=0;$j<$table_count;$j++)
1612 list($table_name) = explode(
'.',$tmp_files[$j]);
1613 if($oDB->isTableExists($table_name)) $created_table_count ++;
1617 $info = $this->getModuleInfoXml($module_name);
1619 if(!$info)
continue;
1621 $info->module = $module_name;
1622 $info->category = $info->category;
1623 $info->created_table_count = $created_table_count;
1624 $info->table_count = $table_count;
1625 $info->path = $path;
1626 $info->admin_index_act = $info->admin_index_act;
1628 if($table_count > $created_table_count) $info->need_install =
true;
1629 else $info->need_install =
false;
1632 $oDummy =
getModule($module_name,
'class');
1633 if($oDummy && method_exists($oDummy,
"checkUpdate"))
1635 $info->need_update = $oDummy->checkUpdate();
1658 foreach($data as $key => $val)
1660 $module_srls[] = $val->module_srl;
1662 if(!count($module_srls))
return;
1666 $module_srls[] = $data->module_srl;
1669 $args =
new stdClass();
1670 $args->module_srls = implode(
',',$module_srls);
1672 if(!
$output->data)
return array();
1673 foreach(
$output->data as $key => $val)
1675 $modules[$val->module_srl] = $val;
1680 foreach($data as $key => $val)
1682 $data[$key]->domain = $modules[$val->module_srl]->domain;
1687 $data->domain = $modules[$data->module_srl]->domain;
1696 if(!$member_info->member_srl)
return false;
1697 if($member_info->is_admin ==
'Y')
return true;
1699 $args =
new stdClass();
1700 if(!isset($site_srl))
1703 if(!$site_module_info)
return;
1704 $args->site_srl = $site_module_info->site_srl;
1708 $args->site_srl = $site_srl;
1711 $args->member_srl = $member_info->member_srl;
1713 if(
$output->data->member_srl ==
$args->member_srl)
return true;
1722 $args =
new stdClass;
1723 $args->site_srl = $site_srl;
1733 $obj =
new stdClass();
1748 $get_module_srls = array();
1749 if(!is_array($list_module_srl)) $list_module_srl = array($list_module_srl);
1754 if($oCacheHandler->isSupport())
1758 $object_key =
'module_extra_vars:'.$module_srl;
1759 $cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
1760 $vars = $oCacheHandler->get($cache_key);
1774 $get_module_srls = $list_module_srl;
1777 if(count($get_module_srls) > 0)
1779 $args =
new stdClass();
1780 $args->module_srl = implode(
',', $get_module_srls);
1795 foreach(
$output->data as $key => $val)
1797 if(in_array($val->name, array(
'mid',
'module')) || $val->value ==
'Array')
continue;
1803 $extra_vars[$val->module_srl]->{$val->name} = $val->value;
1805 if($oCacheHandler->isSupport())
1807 $object_key =
'module_extra_vars:'.$val->module_srl;
1808 $cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
1809 $oCacheHandler->put($cache_key,
$extra_vars[$val->module_srl]);
1824 if($oCacheHandler->isSupport())
1826 $object_key =
'module_skin_vars:'.$module_srl;
1827 $cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
1828 $skin_vars = $oCacheHandler->get($cache_key);
1831 if($skin_vars ===
false)
1833 $args =
new stdClass();
1836 if(!
$output->toBool())
return;
1838 $skin_vars = array();
1839 foreach(
$output->data as $vars)
1841 $skin_vars[$vars->name] = $vars;
1844 if($oCacheHandler->isSupport()) $oCacheHandler->put($cache_key, $skin_vars);
1855 $target = ($skin_type ==
'M') ?
'mskin' :
'skin';
1856 if(!$site_srl) $site_srl = 0;
1858 $designInfoFile = sprintf(
_XE_PATH_.
'files/site_design/design_%s.php', $site_srl);
1859 if(is_readable($designInfoFile))
1861 include($designInfoFile);
1863 $skinName =
$designInfo->module->{$module_name}->{$target};
1867 $dir = ($skin_type ==
'M') ?
'm.skins/' :
'skins/';
1870 if(is_dir($moduleSkinPath.
'default'))
1872 $skinName =
'default';
1874 else if(is_dir($moduleSkinPath.
'xe_default'))
1876 $skinName =
'xe_default';
1881 if(count($skins) > 0)
1883 $skinName = $skins[0];
1891 if($updateCache && $skinName)
1894 $designInfo->module->{$module_name}->{$target} = $skinName;
1914 $skin_vars = $this->getModuleMobileSkinVars(
$module_info->module_srl);
1918 $skin_vars = $this->getModuleSkinVars(
$module_info->module_srl);
1921 if(!$skin_vars)
return;
1923 foreach($skin_vars as $name => $val)
1939 if($oCacheHandler->isSupport())
1941 $object_key =
'module_mobile_skin_vars:'.$module_srl;
1942 $cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
1943 $skin_vars = $oCacheHandler->get($cache_key);
1946 if($skin_vars ===
false)
1948 $args =
new stdClass();
1953 $skin_vars = array();
1954 foreach(
$output->data as $vars)
1956 $skin_vars[$vars->name] = $vars;
1959 if($oCacheHandler->isSupport()) $oCacheHandler->put($cache_key, $skin_vars);
1975 if($oCacheHandler->isSupport())
1977 $object_key =
'module_mobile_skin_vars:'.$module_info->module_srl;
1978 $cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
1979 $skin_vars = $oCacheHandler->get($cache_key);
1981 if($skin_vars ===
false)
1983 $args =
new stdClass;
1986 if(!
$output->toBool())
return;
1990 if($oCacheHandler->isSupport()) $oCacheHandler->put($cache_key, $skin_vars);
1992 if(!$skin_vars)
return;
1994 foreach(
$output->data as $val)
2006 $grant =
new stdClass();
2011 $xml_info = $this->getModuleActionXml($module);
2015 $grant_info = $xml_info->grant;
2016 if($member_info->member_srl)
2018 if(is_array($member_info->group_list)) $group_list = array_keys($member_info->group_list);
2019 else $group_list = array();
2023 $group_list = array();
2028 $grant->access =
true;
2029 if($this->isSiteAdmin($member_info,
$module_info->site_srl))
2031 $grant->access = $grant->manager = $grant->is_site_admin =
true;
2034 $grant->is_admin = $grant->manager = ($member_info->is_admin ==
'Y') ?
true :
false;
2040 $grant->access = $grant->manager = $grant->is_site_admin = ($member_info->is_admin==
'Y'||$this->isSiteAdmin($member_info,
$module_info->site_srl))?
true:
false;
2041 $grant->is_admin = ($member_info->is_admin ==
'Y') ?
true :
false;
2043 if(!$grant->manager && $member_info->member_srl)
2045 $args =
new stdClass();
2047 $args->member_srl = $member_info->member_srl;
2049 if(
$output->data &&
$output->data->member_srl == $member_info->member_srl) $grant->manager =
true;
2052 if(!$grant->manager)
2054 $args =
new stdClass();
2062 $args =
new stdClass;
2067 $grant_exists = $granted = array();
2072 foreach(
$output->data as $val)
2074 $grant_exists[$val->name] =
true;
2075 if($granted[$val->name])
continue;
2077 if($val->group_srl == -1)
2079 $granted[$val->name] =
true;
2080 if($member_info->member_srl) $grant->{$val->name} =
true;
2083 elseif($val->group_srl == -2)
2085 $granted[$val->name] =
true;
2087 if(!$member_info->member_srl) $grant->{$val->name} =
false;
2093 if(!$site_module_info->site_srl) $grant->{$val->name} =
true;
2095 elseif(count($group_list)) $grant->{$val->name} =
true;
2099 elseif($val->group_srl == -3)
2101 $granted[$val->name] =
true;
2102 $grant->{$val->name} = ($grant->is_admin || $grant->is_site_admin);
2104 elseif($val->group_srl == 0)
2106 $granted[$val->name] =
true;
2107 $grant->{$val->name} =
true;
2112 if($group_list && count($group_list) && in_array($val->group_srl, $group_list))
2114 $grant->{$val->name} =
true;
2115 $granted[$val->name] =
true;
2121 if(!$grant_exists[
'access']) $grant->access =
true;
2122 if(count($grant_info))
2124 foreach($grant_info as $grant_name => $grant_item)
2126 if($grant_exists[$grant_name])
continue;
2127 switch($grant_item->default)
2130 $grant->{$grant_name} =
true;
2133 if($member_info->member_srl) $grant->{$grant_name} =
true;
2134 else $grant->{$grant_name} =
false;
2138 if($member_info->member_srl && (($site_module_info->site_srl && count($group_list)) || !$site_module_info->site_srl)) $grant->{$grant_name} =
true;
2139 else $grant->{$grant_name} =
false;
2143 if($member_info->is_admin ==
'Y') $grant->{$grant_name} =
true;
2144 else $grant->{$grant_name} =
false;
2153 $grant->access =
true;
2154 if(count($grant_info))
2156 foreach($grant_info as $key => $val)
2158 $grant->{$key} =
true;
2168 $args =
new stdClass();
2169 $args->module_filebox_srl = $module_filebox_srl;
2177 $args =
new stdClass();
2179 $args->list_count = 5;
2180 $args->page_count = 5;
2188 if(is_array($module_filebox_list->data))
2190 foreach($module_filebox_list->data as &$item)
2192 if(empty($item->comment))
2197 $attributes = explode(
';', $item->comment);
2198 foreach($attributes as $attribute)
2200 $values = explode(
':', $attribute);
2201 if((count($values) % 2) ==1)
2203 for($i=2;$i<count($values);$i++)
2205 $values[1].=
":".$values[$i];
2208 $atts[$values[0]]=$values[1];
2210 $item->attributes = $atts;
2214 return $module_filebox_list;
2221 $link = parse_url($_SERVER[
"HTTP_REFERER"]);
2222 $link_params = explode(
'&',$link[
'query']);
2223 foreach ($link_params as $param)
2225 $param = explode(
"=",$param);
2226 if($param[0] ==
'selected_widget') $selected_widget = $param[1];
2228 $oWidgetModel =
getModel(
'widget');
2229 if($selected_widget) $widget_info = $oWidgetModel->getWidgetInfo($selected_widget);
2230 Context::set(
'allow_multiple', $widget_info->extra_var->images->allow_multiple);
2237 if (!$page) $page = 1;
2242 $security->encodeHTML(
'filebox_list..comment',
'filebox_list..attributes.');
2245 $html = $oTemplate->compile(
_XE_PATH_ .
'modules/module/tpl/',
'filebox_list_html');
2247 $this->add(
'html', $html);
2252 return sprintf(
"./files/attach/filebox/%s",
getNumberingPath($module_filebox_srl,3));
2262 if(strpos($ruleset,
'@') !==
false)
2264 $rulsetFile = str_replace(
'@',
'', $ruleset);
2265 $xml_file = sprintf(
'./files/ruleset/%s.xml', $rulsetFile);
2268 else if (strpos($ruleset,
'#') !==
false)
2270 $rulsetFile = str_replace(
'#',
'', $ruleset).
'.'.$mid;
2271 $xml_file = sprintf(
'./files/ruleset/%s.xml', $rulsetFile);
2272 if(is_readable($xml_file))
2275 $ruleset = str_replace(
'#',
'', $ruleset);
2281 if(!$class_path)
return;
2284 $xml_file = sprintf(
"%sruleset/%s.xml", $class_path, $ruleset);
2285 if(!file_exists($xml_file))
return;
2296 $args =
new stdClass;
2297 $args->site_srl = (int)$requestVars->site_srl;
2299 $args->list_count = 100;
2300 $args->page_count = 5;
2301 $args->sort_index =
'name';
2302 $args->order_type =
'asc';
2311 foreach((array)
$output->data as $code_info)
2314 $codeInfo = array(
'name'=>
'$user_lang->'.$code_info->name,
'value'=>$code_info->value);
2315 $list[] = $codeInfo;
2318 $this->add(
'results', $list);
2326 $args =
new stdClass();
2327 $args->site_srl = $site_srl;
2335 if (!$langCode)
return;
2340 $this->add(
'lang', $langCode);
getModuleInfoByMid($mid, $site_srl=0, $columnList=array())
Get module information by mid.
getController($module_name)
getSiteInfo($site_srl, $columnList=array())
Get site information.
getNumberingPath($no, $size=3)
getModuleExtraVars($list_module_srl)
Get extra vars of the module Extra information, not in the modules table.
getGrant($module_info, $member_info, $xml_info= '')
Return permission by using module info, xml info and member info.
getModuleConfig($module, $site_srl=0)
Return module configurations Global configuration is used to manage board, member and others...
getModuleCategory($module_category_srl)
Get content from the module category.
getModuleMobileSkinVars($module_srl)
Model class of module module.
isSiteAdmin($member_info, $site_srl=null)
Check if it is an administrator of site_module_info.
if(file_exists(_XE_PATH_. 'config/config.user.inc.php')) if(!defined('__DEBUG__')) if(!defined('__DEBUG_OUTPUT__')) if(!defined('__DEBUG_PROTECT__')) if(!defined('__DEBUG_PROTECT_IP__')) if(!defined('__DEBUG_DB_OUTPUT__')) if(!defined('__LOG_SLOW_QUERY__')) if(!defined('__LOG_SLOW_TRIGGER__')) if(!defined('__LOG_SLOW_ADDON__')) if(!defined('__LOG_SLOW_WIDGET__')) if(!defined('__DEBUG_QUERY__')) if(!defined('__OB_GZHANDLER_ENABLE__')) if(!defined('__ENABLE_PHPUNIT_TEST__')) if(!defined('__PROXY_SERVER__')) if(!defined('__ERROR_LOG__')) if(!defined('__DISABLE_DEFAULT_CSS__')) if(!defined('__AUTO_OPCACHE_INVALIDATE__')) if((__DEBUG_OUTPUT__==2)&&version_compare(PHP_VERSION, '6.0.0')===-1) if(version_compare(PHP_VERSION, '5.3.0') >=0) $GLOBALS['__xe_autoload_file_map']
getDefaultMid()
Get the default mid according to the domain.
loadModuleExtends()
Get all the module extend.
& getInstance($target= 'object', $info=null, $always_use_file=false)
foreach($sitemap as $id=> &$val) $extra_vars
set($key, $val, $set_to_get_vars=0)
getModuleSkinVars($module_srl)
Get skin information of the module.
writeFile($filename, $buff, $mode="w")
syncSkinInfoToModuleInfo(&$module_info)
Combine skin information with module information.
getTrigger($trigger_name, $module, $type, $called_method, $called_position)
Get specific triggers from the trigger_name.
getActionForward($act)
Get forward value by the value of act.
checkNeedUpdate($module_name)
loadSkinInfo($path, $skin, $dir= 'skins')
Get skin information on a specific location.
getSiteAdmin($site_srl)
Get admin information of the site.
getValidatorFilePath($module, $ruleset, $mid=null)
Return ruleset cache file path.
getModuleCategories($moduleCategorySrl=array())
Get a list of module category.
getSiteInfoByDomain($domain, $columnList=array())
checkNeedInstall($module_name)
$module_srl
integer value to represent a run-time instance of Module (XE Module)
getModuleListByInstance($site_srl=0, $columnList=array())
already instance created module list
getModuleSrlByMid($mid)
Return an array of module_srl corresponding to a mid list.
getModulesInfo($module_srls, $columnList=array())
Get module information corresponding to multiple module_srls.
getMidList($args=null, $columnList=array())
Get a complete list of mid, which is created in the DB.
getModulesInfoByLayout($layout_srl, $columnList=array())
Get module information corresponding to layout_srl.
getModuleExtend($parent_module, $type, $kind='')
Get module extend.
$module_info
an object containing the module information
isIDExists($id, $site_srl=0)
Check if mid, vid are available.
addModuleExtraVars($module_info)
Add extra vars to the module basic information.
$mid
string to represent run-time instance of Module (XE Module)
getModuleList()
Get a type and information of the module.
getModulePartConfigs($module, $site_srl=0)
Get all of module configurations for each mid.
getModulePartConfig($module, $module_srl)
Return the module configuration of mid Manage mid configurations which depend on module.
getTriggers($trigger_name, $called_position)
Get a list of all triggers on the trigger_name.
syncMobileSkinInfoToModuleInfo(&$module_info)
getModuleFileBoxPath($module_filebox_srl)
getModuleInfoByDocumentSrl($document_srl)
Get module information with document_srl In this case, it is unable to use the cache file...
getAdminModel($module_name)
syncModuleToSite(&$data)
Combine module_srls with domain of sites Because XE DBHandler doesn't support left outer join...
getInstance($db_type=NULL)
getModuleInfoByModuleSrl($module_srl, $columnList=array())
Get module information corresponding to module_srl.
getModuleSrlList($args=null, $columnList=array())
Get a complete list of module_srl, which is created in the DB.
getRequestUri($ssl_mode=FOLLOW_REQUEST_SSL, $domain=null)
getModuleCount($site_srl, $module=null)
Return the number of modules which are registered on a virtual site.
getModuleActionXml($module)
Return permisson and action data by conf/module.xml in the module Cache it because it takes too long ...
getModuleFileBox($module_filebox_srl)
getModuleDefaultSkin($module_name, $skin_type= 'P', $site_srl=0, $updateCache=true)
getLangListByLangcodeForAutoComplete()
executeQueryArray($query_id, $args=NULL, $arg_columns=NULL)
getAdminController($module_name)
readDir($path, $filter= '', $to_lower=FALSE, $concat_prefix=FALSE)
getAdminId($module_srl)
Get admin ID of the module.
executeQuery($query_id, $args=NULL, $arg_columns=NULL)
getModulesXmlInfo()
Get xml information of the module.
getSkins($path, $dir= 'skins')
Get a list of skins for the module Return file analysis of skin and skin.xml.
unserializeAttributes($module_filebox_list)
getModule($module_name, $type= 'view', $kind= '')
needUpdate($update_id)
업데이트 적용 여부 확인
high class of the module module
getModuleInfoByMenuItemSrl($menu_item_srl=0)
getModuleInfoXml($module)
Get information from conf/info.xml.