Postgres::getGroup PHP Method

getGroup() public method

Return users in a specific group
public getGroup ( $groname ) : All
$groname The name of the group
return All users in the group
    function getGroup($groname)
    {
        $this->clean($groname);
        $sql = "\n\t\t\tSELECT s.usename FROM pg_catalog.pg_user s, pg_catalog.pg_group g\n\t\t\tWHERE g.groname='{$groname}' AND s.usesysid = ANY (g.grolist)\n\t\t\tORDER BY s.usename";
        return $this->selectSet($sql);
    }
Postgres