mgd_list_groups

(Midgard 1.4.2 'Bifrost')

mgd_list_groups -- List groups

Description

object mgd_list_groups (int [owner])

Minimum version: Midgard 1.1.1 owner parameter available from: Midgard 1.4 (Bifrost)

Lists group records. If the optional parameter owner is given, only groups owned by owner will be listed.

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


<?php
$lg = mgd_list_groups();
  while($lg->fetch()) {
      echo $lg->id . "<br>";
      echo $lg->name . "<br>";
      echo $lg->official . "<br>";
  }
?>