19 $args =
new stdClass();
20 $args->category_srl = $category_srl;
26 return array_shift(
$output->data);
52 $args =
new stdClass();
53 $args->package_srl = $package_srl;
59 return array_shift(
$output->data);
70 $args =
new stdClass();
71 $args->package_srl = $package_srl;
77 return array_shift(
$output->data);
93 $categoryList = array();
94 foreach(
$output->data as $category)
96 $category->children = array();
97 $categoryList[$category->category_srl] = $category;
101 foreach($categoryList as $key => $category)
103 if($category->parent_srl)
105 $categoryList[$category->parent_srl]->children[] = & $categoryList[$key];
112 $resultList = array();
113 foreach($depth0 as $category_srl)
115 $this->
setDepth($categoryList[$category_srl], 0, $categoryList, $resultList);
128 $args =
new stdClass();
129 $args->category_srl = $category_srl;
162 function setDepth(&$item, $depth, &$list, &$resultList)
164 $resultList[$item->category_srl] = &$item;
165 $item->depth = $depth;
166 $siblingList = $item->category_srl;
167 foreach($item->children as $child)
169 $siblingList .=
"," . $this->
setDepth($list[$child->category_srl], $depth + 1, $list, $resultList);
171 if(count($item->children) < 1)
175 $item->childrenList = $siblingList;
191 return array_shift(
$output->data);
202 $args =
new stdClass();
203 $args->package_list = $package_list;
210 foreach(
$output->data as $value)
212 $result[$value->package_srl] = $value;
225 $args =
new stdClass();
227 $args->list_count = 10;
228 $args->page_count = 5;
231 $args->sort_index =
'package_srl';
239 $res[$val->package_srl] = $val;
264 $path_array = explode(
"/", $path);
265 $target_name = array_pop($path_array);
268 $target_name = array_pop($path_array);
270 $type = substr(array_pop($path_array), 0, -1);
291 $config_file =
"/conf/info.xml";
294 $config_file =
"/info.xml";
300 $config_file =
"/skin.xml";
303 $config_file =
"/info.xml";
317 $path_array = explode(
"/", $path);
318 $target_name = array_pop($path_array);
319 $oModule =
getModule($target_name,
"class");
324 if(method_exists($oModule,
"moduleUninstall"))
347 if(substr($path, -1) ==
'/')
349 $path = substr($path, 0, strlen($path) - 1);
352 if(!$GLOBLAS[
'XE_AUTOINSTALL_PACKAGE_SRL_BY_PATH'][$path])
354 $args =
new stdClass();
358 $GLOBLAS[
'XE_AUTOINSTALL_PACKAGE_SRL_BY_PATH'][$path] =
$output->data->package_srl;
361 return $GLOBLAS[
'XE_AUTOINSTALL_PACKAGE_SRL_BY_PATH'][$path];
373 if(!$ftp_info->ftp_root_path)
383 return getNotEncodedUrl(
'',
'module',
'admin',
'act',
'dispAutoinstallAdminUninstall',
'package_srl', $packageSrl);
400 if(!$ftp_info->ftp_root_path)
411 return getNotEncodedUrl(
'',
'module',
'admin',
'act',
'dispAutoinstallAdminUninstall',
'package_srl', $packageSrl);
427 return getNotEncodedUrl(
'',
'module',
'admin',
'act',
'dispAutoinstallAdminInstall',
'package_srl', $packageSrl);
449 return getNotEncodedUrl(
'',
'module',
'admin',
'act',
'dispAutoinstallAdminInstall',
'package_srl', $packageSrl);
getPackageCount($category_srl)
getInstalledPackage($package_srl)
getRemoveUrlByPackageSrl($packageSrl)
getInstalledPackageList($page)
getUpdateUrlByPath($path)
getPackageSrlByPath($path)
getUpdateUrlByPackageSrl($packageSrl)
setDepth(&$item, $depth, &$list, &$resultList)
getHaveInstance($columnList=array())
getCategory($category_srl)
executeQueryArray($query_id, $args=NULL, $arg_columns=NULL)
getInstalledPackageCount()
getRemoveUrlByPath($path)
executeQuery($query_id, $args=NULL, $arg_columns=NULL)
getModule($module_name, $type= 'view', $kind= '')
getInstalledPackages($package_list)