PostNuke Help |
||
|---|---|---|
Previous |
Next |
|
get all user variables
array pnUserGetVars(uid);
pnUserGetVars() gets all user variables for a specified user identified by uid. pnUserGetVars() is deprecated because it can't be integrated with the new Dynamic User Data architecture. See the User Variable section in the PostNuke Module Development Guide for getting an overview of the new architecture.
The user identifier
This function returns an associative array of user variables where keys represent variable names and values variable values.
// Get user id
$uid = pnSessionGetVar('uid');
// Get user variables
$vars = pnUserGetVars($uid);
$user_description = $vars['name'] . ', ' . $vars['email'];
pnUserGetVar(), pnUserSetVar()
Previous |
Next |