From db5fd084c78cd3a3ba859beb400baf9d7b69a764 Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Thu, 17 Nov 2011 12:45:16 +0100 Subject: pbs2Api klasse korrigiert --- library/Poolctrl/Pbs2Api.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'library') diff --git a/library/Poolctrl/Pbs2Api.php b/library/Poolctrl/Pbs2Api.php index 98c4b01..6a88ddb 100644 --- a/library/Poolctrl/Pbs2Api.php +++ b/library/Poolctrl/Pbs2Api.php @@ -285,13 +285,14 @@ class Poolctrl_Pbs2Api { } public function addFilterentry($filterID, $filterType, $filterValue1, $filterValue2) { - $filterentriesXML = $this->runApi($this->pbs2host, $this->config['pbs2']['addfilterentry'], $filterentriesquery); + $filterentriesQuerie = "filterID=" . $filterID . "&filtertypeID=" . $filterType . "&filtervalue=" . $filterValue1 . "&filtervalue2=" . $filterValue2; + $filterentriesXML = $this->runApi($this->pbs2host, $this->config['pbs2']['addfilterentry'], $filterentriesQuerie); $filterentriesID = sprintf("%s", $filterentriesXML->filterentry->id); return $filterentriesID; } - public function changeFilterentry($oldValue1, $oldValue2, $newValue1, $newValue2) { - $filterentriesQuerie = "filterid=" . $event->getPbs_filterID() . "&oldvalue1=" . $oldValue1 . "&oldvalue2=" . $oldValue2 . "&value1=" . $newValue1 . "&value2=" . $newValue2; + public function changeFilterentry($filterID, $oldValue1, $oldValue2, $newValue1, $newValue2) { + $filterentriesQuerie = "filterid=" . $filterID . "&oldvalue1=" . $oldValue1 . "&oldvalue2=" . $oldValue2 . "&value1=" . $newValue1 . "&value2=" . $newValue2; $filterentriesXML = $this->runApi($this->pbs2host, $this->config['pbs2']['changefilterentry'], $filterentriesQuerie); return $filterentriesXML; } -- cgit v1.2.3-55-g7522