mgd_list_topic_persons_all

(Midgard 1.4.2 'Bifrost')

mgd_list_topic_persons_all -- List persons of a topic tree

Description

object mgd_list_topic_persons_all (int id, string [sort])

Minimum version: Midgard 1.0

Lists all persons that have their department field set to a topic that is in the topic tree starting at the topic with id id.

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


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