+ public static function fetchRadioBouqets($ip, $bEpgData = true)
+ {
+ return self::fetchBouqets(
+ $ip,
+ //TODO: fetch from dreambox config.js
+ '1:7:2:0:0:0:0:0:0:0:(type == 2)FROM BOUQUET "bouquets.radio" ORDER BY bouquet',
+ $bEpgData
+ );
+ }//public static function fetchRadioBouqets(..)
+
+
+
+ /**
+ * Fetch TV bouqets
+ *
+ * @param string $ip IP-address or hostname of the dreambox
+ * @param boolean $bEpgData If EPG data shall be fetched, too
+ *
+ * @return array Array of bouqets and the items
+ */
+ public static function fetchTvBouqets($ip, $bEpgData = true)
+ {
+ return self::fetchBouqets(
+ $ip,
+ //TODO: fetch from dreambox config.js
+ '1:7:2:0:0:0:0:0:0:0:(type == 2)FROM BOUQUET "bouquets.tv" ORDER BY bouquet',
+ $bEpgData
+ );
+ }//public static function fetchTvBouqets(..)
+
+
+
+ /**
+ * Fetch bouqets
+ *
+ * @param string $ip IP-address or hostname of the dreambox
+ * @param string $sql SQL query to fetch bouqet from database
+ * @param boolean $bEpgData If EPG data shall be fetched, too
+ *
+ * @return array Array of bouqets (name is key) and the items (sub arrays)
+ */
+ public static function fetchBouqets($ip, $sql, $bEpgData = true)