mgd_list_members

(Midgard 1.4.2 'Bifrost')

mgd_list_members -- List members

Description

object mgd_list_members (int group)

Minimum version: Midgard 1.2.5 (Mad King)

Lists the members of the group with id group.

Returns an object traversable by calling fetch() if successful. Returns FALSE on failure.


<?php
  $group = 1;
  $lst = mgd_list_members( $group );
  while( $lst->fetch() ) {
    $person = mgd_get_person($lst->uid);
    echo $person->name . "<br>\n";
  }
?>