PostNuke Help

Previous
pnUserGetVar

Home
up

Next
pnUserLoggedIn


pnUserGetVars

get all user variables

Synopsis

array pnUserGetVars(uid);

Description

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.

Parameters

uid

The user identifier

Return Values

This function returns an associative array of user variables where keys represent variable names and values variable values.

Notes

Examples

// Get user id
$uid = pnSessionGetVar('uid');
// Get user variables
$vars = pnUserGetVars($uid);
$user_description = $vars['name'] . ', ' . $vars['email'];
       

See Also

pnUserGetVar(), pnUserSetVar()


Previous
pnUserGetVar

Home
up

Next
pnUserLoggedIn