summaryrefslogtreecommitdiffstats
path: root/library/Poolctrl/Pbs2Api.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Poolctrl/Pbs2Api.php')
-rw-r--r--library/Poolctrl/Pbs2Api.php7
1 files changed, 4 insertions, 3 deletions
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;
}