Open Source Content Management System

mgd_get_person

  1. Description

mgd_get_person -- Get a person

Description

`object **mgd_get_person** (int id)`

Minimum version: Midgard 1.0

Gets information about the person record with id id. Since Midgard 1.6.0 the id argument must be the database ID of the person record being queried. Previously using the username string was also possible but this has been deprecated in favor of mgd_get_person_by_name().

Returns an object describing the record if successful. Returns FALSE on failure.

 $id = 17;  
 $person = mgd_get_person( $id );  
 echo $person->firstname . " " $person->lastname . "has  username:"  
    . $person->username;  
?>
Designed by Nemein, hosted by Anykey