mgd_list_topic_persons

(Midgard 1.4.2 'Bifrost')

mgd_list_topic_persons -- List persons of a topic

Description

object mgd_list_topic_persons (int id, string [sort])

Minimum version: Midgard 1.0

Lists all persons that have their department field set to id.

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


<?php
  $list = mgd_list_topic_persons(17);
  while($list->fetch()) {
     echo $list->username . "<br>\n";
  }
?>