@@ -292,6 +292,37 @@ public function members($project_id, $parameters = [])
292
292
return $ this ->get ($ this ->getProjectPath ($ project_id , 'members ' ), $ resolver ->resolve ($ parameters ));
293
293
}
294
294
295
+ /**
296
+ * @param int $project_id
297
+ * @param array $parameters (
298
+ *
299
+ * @var string $query The query you want to search members for.
300
+ * )
301
+ *
302
+ * @throws MissingOptionsException If a required option is not provided
303
+ *
304
+ * @return mixed
305
+ */
306
+ public function membersAll ($ project_id , $ parameters = [])
307
+ {
308
+ if (!is_array ($ parameters )) {
309
+ @trigger_error ("Deprecated: String parameter of the members() function is deprecated. " , E_USER_NOTICE );
310
+ $ username_query = $ parameters ;
311
+ $ parameters = array ();
312
+ if (!empty ($ username_query )) {
313
+ $ parameters ['query ' ] = $ username_query ;
314
+ }
315
+ }
316
+
317
+ $ resolver = $ this ->createOptionsResolver ();
318
+
319
+ $ resolver ->setDefined ('query ' )
320
+ ->setAllowedTypes ('query ' , 'string ' )
321
+ ;
322
+
323
+ return $ this ->get ($ this ->getProjectPath ($ project_id , 'members/all ' ), $ resolver ->resolve ($ parameters ));
324
+ }
325
+
295
326
/**
296
327
* @param int $project_id
297
328
* @param int $user_id
@@ -768,7 +799,7 @@ public function deployment($project_id, $deployment_id)
768
799
{
769
800
return $ this ->get ($ this ->getProjectPath ($ project_id , 'deployments/ ' .$ this ->encodePath ($ deployment_id )));
770
801
}
771
-
802
+
772
803
/**
773
804
* @param mixed $project_id
774
805
* @param array $parameters
@@ -796,7 +827,7 @@ public function addShare($project_id, array $parameters = [])
796
827
797
828
return $ this ->post ($ this ->getProjectPath ($ project_id , 'share ' ), $ resolver ->resolve ($ parameters ));
798
829
}
799
-
830
+
800
831
/**
801
832
* @param mixed $project_id
802
833
* @param int $group_id
0 commit comments