mgd_list_topic_persons_all

Name

mgd_list_topic_persons_all -- List persons of a topic tree

Synopsis

object mgd_list_topic_persons_all(int id, string [sort]);

Description

Minimum version: Midgard 1.0 (Land Rover)

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 successfull. Returns false on failure.

Example

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