Skip to content

Commit d9b64d5

Browse files
committed
Fixed some methods
Because some methods were generated from zaproxy trunk not from zaproxy branch 2.3.
1 parent 6e17448 commit d9b64d5

File tree

2 files changed

+6
-46
lines changed

2 files changed

+6
-46
lines changed

src/Zap/Core.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,6 @@ public function sendRequest($request, $followredirects='', $apikey='') {
191191
return $this->zap->request($this->zap->base . 'core/action/sendRequest/', array('request' => $request, 'followRedirects' => $followredirects, 'apikey' => $apikey));
192192
}
193193

194-
public function deleteAllAlerts($apikey='') {
195-
return $this->zap->request($this->zap->base . 'core/action/deleteAllAlerts/', array('apikey' => $apikey));
196-
}
197-
198194
public function setOptionProxyChainName($string, $apikey='') {
199195
return $this->zap->request($this->zap->base . 'core/action/setOptionProxyChainName/', array('String' => $string, 'apikey' => $apikey));
200196
}

src/Zap/Spider.php

Lines changed: 6 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,12 @@ public function __construct ($zap) {
3232
$this->zap = $zap;
3333
}
3434

35-
public function status($scanid='') {
36-
return $this->zap->request($this->zap->base . 'spider/view/status/', array('scanId' => $scanid))->{'status'};
35+
public function status() {
36+
return $this->zap->request($this->zap->base . 'spider/view/status/')->{'status'};
3737
}
3838

39-
public function results($scanid='') {
40-
return $this->zap->request($this->zap->base . 'spider/view/results/', array('scanId' => $scanid))->{'results'};
41-
}
42-
43-
public function fullResults($scanid) {
44-
return $this->zap->request($this->zap->base . 'spider/view/fullResults/', array('scanId' => $scanid))->{'fullResults'};
45-
}
46-
47-
public function scans() {
48-
return $this->zap->request($this->zap->base . 'spider/view/scans/')->{'scans'};
39+
public function results() {
40+
return $this->zap->request($this->zap->base . 'spider/view/results/')->{'results'};
4941
}
5042

5143
public function excludedFromScan() {
@@ -128,36 +120,8 @@ public function scanAsUser($url, $contextid, $userid, $apikey='') {
128120
return $this->zap->request($this->zap->base . 'spider/action/scanAsUser/', array('url' => $url, 'contextId' => $contextid, 'userId' => $userid, 'apikey' => $apikey));
129121
}
130122

131-
public function pause($scanid, $apikey='') {
132-
return $this->zap->request($this->zap->base . 'spider/action/pause/', array('scanId' => $scanid, 'apikey' => $apikey));
133-
}
134-
135-
public function resume($scanid, $apikey='') {
136-
return $this->zap->request($this->zap->base . 'spider/action/resume/', array('scanId' => $scanid, 'apikey' => $apikey));
137-
}
138-
139-
public function stop($scanid='', $apikey='') {
140-
return $this->zap->request($this->zap->base . 'spider/action/stop/', array('scanId' => $scanid, 'apikey' => $apikey));
141-
}
142-
143-
public function removeScan($scanid, $apikey='') {
144-
return $this->zap->request($this->zap->base . 'spider/action/removeScan/', array('scanId' => $scanid, 'apikey' => $apikey));
145-
}
146-
147-
public function pauseAllScans($apikey='') {
148-
return $this->zap->request($this->zap->base . 'spider/action/pauseAllScans/', array('apikey' => $apikey));
149-
}
150-
151-
public function resumeAllScans($apikey='') {
152-
return $this->zap->request($this->zap->base . 'spider/action/resumeAllScans/', array('apikey' => $apikey));
153-
}
154-
155-
public function stopAllScans($apikey='') {
156-
return $this->zap->request($this->zap->base . 'spider/action/stopAllScans/', array('apikey' => $apikey));
157-
}
158-
159-
public function removeAllScans($apikey='') {
160-
return $this->zap->request($this->zap->base . 'spider/action/removeAllScans/', array('apikey' => $apikey));
123+
public function stop($apikey='') {
124+
return $this->zap->request($this->zap->base . 'spider/action/stop/', array('apikey' => $apikey));
161125
}
162126

163127
public function clearExcludedFromScan($apikey='') {

0 commit comments

Comments
 (0)