Minimum version: Midgard 1.0
Lists all person records.The records are sorted alphabetically by the fields lastname and firstname in this order. The returned records contain the following fields if readable by the current user: id, username, name, rname, extra, topic, department, office, admin, public. See the description of the person record's fields for more information.
Returns an object traversable by calling fetch() if successful. Returns FALSE on failure.
<?php $people = mgd_list_persons(); if( $people->N == 0 ) { echo "No person records available"; } else { while( $people->fetch() ) { echo $people->name . " username: " . $people->username . "<br>\n"; } } ?> |