string smarty_function_pnusergetvar(
array $params, object &$smarty, string $name, integer $uid)
|
|
Smarty function to get a user variable
This function obtains a user-specific variable from the Zikula system.
Note that the results should be handled by the pnvarprepfordisplay of the pnvarprephtmldisplay modifiers before being displayed.
Available parameters:
- name: The name of the variable being requested
- uid: The user id to obtain the variable for - this parameter is optional
- assign: If set, the results are assigned to the corresponding variable instead of printed out
Example <!--[pnusergetvar name="user_icq" uid=1|pnvarprepfordisplay]-->
Tags:
Parameters
| array |
$params |
All attributes passed to this function from the template |
| object |
&$smarty |
Reference to the Smarty object |
| string |
$name |
The name of the parameter being requested |
| integer |
$uid |
The user id to obtain the variable for - this parameter is optional |