File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -60,12 +60,28 @@ public function addMemberUID(string $uid): void
6060 $ this ->entry ->write ();
6161 }
6262
63+ public function addMemberUIDs (array $ uids ): void
64+ {
65+ foreach ($ uids as $ uid ) {
66+ $ this ->entry ->appendAttribute ("memberuid " , $ uid );
67+ }
68+ $ this ->entry ->write ();
69+ }
70+
6371 public function removeMemberUID (string $ uid ): void
6472 {
6573 $ this ->entry ->removeAttributeEntryByValue ("memberuid " , $ uid );
6674 $ this ->entry ->write ();
6775 }
6876
77+ public function removeMemberUIDs (array $ uids ): void
78+ {
79+ foreach ($ uids as $ uid ) {
80+ $ this ->entry ->removeAttributeEntryByValue ("memberuid " , $ uid );
81+ }
82+ $ this ->entry ->write ();
83+ }
84+
6985 public function mermberUIDExists (string $ uid ): bool
7086 {
7187 return in_array ($ uid , $ this ->getMemberUIDs ());
You can’t perform that action at this time.
0 commit comments