Open Source Content Management System

mgd_list_persons_in_department_all

  1. Description

mgd_list_persons_in_department_all -- List persons linked to a department topic tree

Description

`object **mgd_list_persons_in_department_all** (int department, string sort)`

Minimum version: Midgard 1.0

Lists all persons linked to department topic _ department_ and it's subtopics. The department link in the person record contains an id number that should point to a topic record. This function returns all the person records with the given department link pointing to any topic in the topic tree starting from the topic given as the department argument.

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

N == 0 ) {  
       echo "No people in (sub)department(s) $dept.<br>";  
     } else {  
       while( $people->fetch() ) {  
         echo $people->name . "
\n"; } } ?>
Designed by Nemein, hosted by Anykey