Skip to content

Commit

Permalink
Include expectation for the getGroupDetails method
Browse files Browse the repository at this point in the history
  • Loading branch information
jvillafanez committed Jan 17, 2023
1 parent 3b68d07 commit 6a44b84
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/Group_LDAP.php
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,16 @@ public function groupExists($gid) {
return true;
}

/**
* Get the details of the target group. The details consist (as of now)
* of the gid and the displayname of the group. More data might be added
* accordingly to the interface.
* The method returns null on error (such as missing displayname, or
* missing group)
* @param string $gid the gid of the group we want to get the details of
* @return array|null an array containing the gid and the displayname such as
* ['gid' => 'abcdef', 'displayname' => 'my group']
*/
public function getGroupDetails($gid) {
$cacheKey = "groupDetails-$gid";
$details = $this->access->getConnection()->getFromCache($cacheKey);
Expand Down

0 comments on commit 6a44b84

Please sign in to comment.