summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3e7d388)
raw | patch | inline | side by side (parent: 3e7d388)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 11 Apr 2008 13:32:48 +0000 (13:32 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 11 Apr 2008 13:32:48 +0000 (13:32 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10361 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_gosaSupportDaemon.inc | patch | blob | history |
diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc
index 2f3401e52dbb0c526b604b4fbb207f35ae7fcc44..9ceccc240c7860dd8bc4e733370d0cf852e1f9ab 100644 (file)
}
- public function FAI_get_packages($release,$attrs, $package="")
+ public function FAI_get_packages($release,$attrs, $package = array())
{
$this->reset_error();
$ret = array();
$attr.= "<select>".$at."</select>";
}
+ /* Create list of attributes to fetch */
+ $pkgs = "";
+ foreach($package as $pkg){
+ $pkgs .="<phrase>
+ <operator>like</operator>
+ <package>".$pkg."</package>
+ </phrase>";
+
+ }
+
/* Create Daemon query */
if(empty($package)){
$xml_msg = "<xml><header>gosa_query_packages_list</header><target>GOSA</target><source>GOSA</source>".
}else{
$xml_msg = "<xml><header>gosa_query_packages_list</header><target>GOSA</target><source>GOSA</source>".
$attr.
- "<where><clause>
+ "<where>
<connector>AND</connector>
- <phrase><distribution>".$release."</distribution></phrase>
- <phrase><package>".$package."</package></phrase>
- </clause></where>
+ <clause>
+ <phrase><distribution>".$release."</distribution></phrase>
+ </clause>
+ <clause>
+ <connector>OR</connector>
+ $pkgs
+ </clause>
+ </where>
+ <limit><from>0</from><to>100</to></limit>
</xml>";
}