summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f892946)
raw | patch | inline | side by side (parent: f892946)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 9 Dec 2009 09:37:38 +0000 (09:37 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 9 Dec 2009 09:37:38 +0000 (09:37 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14886 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/opsi/admin/opsi/class_opsi.inc | patch | blob | history |
diff --git a/gosa-plugins/opsi/admin/opsi/class_opsi.inc b/gosa-plugins/opsi/admin/opsi/class_opsi.inc
index b0ea92bdf24951998b305565a2e5d495d24f7081..ebbf46c213e71e28cb04e8d95aae754f85e79311 100644 (file)
}
+ /*! \brief Returns a list of netboot products.
+ @param
+ @return
+ */
+ public function get_full_product_host_information($host = "")
+ {
+ /* Append host attribute to query data
+ */
+ $data = array();
+ if(!empty($host)){
+ $data['hostId'] = trim($host);
+ }
+
+ $res = $this->send_data("gosa_opsi_get_full_product_host_information",$this->target,$data,TRUE);
+ print_a($res);
+ $items = array();
+ if(isset($res['XML'][0]['ITEM'])){
+ foreach($res['XML'][0]['ITEM'] as $entry){
+ $e = array("DESC" => $entry['DESCRIPTION'][0]['VALUE'],
+ "NAME" => $entry['PRODUCTID'][0]['VALUE']);
+ $items[$entry['PRODUCTID'][0]['VALUE']] = $e;
+ }
+ }
+ return($items);
+ }
+
+
/*! \brief Returns a list of all product properties. \
. Additionally you can specify the host parameter to \
. get host specific product properties