#18540114 : added a feature showing installed packages

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7032 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2009-12-11 14:31:50 +00:00
parent 33aef51d0f
commit 01ec0c89d2
14 changed files with 113 additions and 17 deletions

View file

@ -78,6 +78,13 @@
return $output->data->count;
}
function getInstalledPackageCount()
{
$output = executeQuery("autoinstall.getInstalledPackageCount", $args);
if(!$output->data) return 0;
return $output->data->count;
}
function setDepth(&$item, $depth, &$list, &$resultList)
{
$resultList[$item->category_srl] =& $item;
@ -113,5 +120,18 @@
return $result;
}
function getInstalledPackageList($page)
{
$args->page = $page;
$output = executeQueryArray("autoinstall.getInstalledPackageList", $args);
$res = array();
foreach($output->data as $val)
{
$res[$val->package_srl] = $val;
}
$output->data = $res;
return $output;
}
}
?>