@@ -32,20 +32,12 @@ public function __construct ($zap) {
32
32
$ this ->zap = $ zap ;
33
33
}
34
34
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 ' };
37
37
}
38
38
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 ' };
49
41
}
50
42
51
43
public function excludedFromScan () {
@@ -128,36 +120,8 @@ public function scanAsUser($url, $contextid, $userid, $apikey='') {
128
120
return $ this ->zap ->request ($ this ->zap ->base . 'spider/action/scanAsUser/ ' , array ('url ' => $ url , 'contextId ' => $ contextid , 'userId ' => $ userid , 'apikey ' => $ apikey ));
129
121
}
130
122
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 ));
161
125
}
162
126
163
127
public function clearExcludedFromScan ($ apikey ='' ) {
0 commit comments