Connectivity Guide

GetUserTime($username, $from_time, $to_time = null)
Calculate sum of session times in a specified time interval.
See "GetTraffic()" on page 389 for details on how to specify the time interval.
GetUserTraffic()
GetUserTraffic($username, $from_time, $to_time = null, $in_out = null)
Calculate sum of traffic counters in a time interval. Sessions are summed if they have the same User-Name attribute as
that specified in the RADIUS Access-Request.
See "GetCallingStationTraffic()" on page 386 for details on how to specify the time interval.
Advanced Developer Reference
The reference documentation in this section is intended for advanced usage by developers.
nwa_assign
{nwa_assign …}
Smarty registered template function. Assigns a page variable based on the output of a generator function.
Simple usage example:
{nwa_assign var=my_variable value=my_value}
l The “var” parameter specifies the page variable that will receive the output.
l The “value parameter specifies the value to assign to var”.
The various request variables may also be accessed using one of two supported methods:
l {nwa_assign var=_GET.get_variable value=...}
l {nwa_assign var=smarty.get.get_variable value=...}
The variables that can be accessed this way are _GET (smarty.get), _POST (smarty.post), _REQUEST (smarty.request),
_SESSION (smarty.session), _COOKIE (smarty.cookies), and _ENV (smarty.env).
Assigning to values in _SESSION will persist the value for the next page load in the session.
Alternative usage example:
{nwa_assign var=userskin_plugin generator=NwaGetPluginDetails arg=$u.userskin}
l The “generator parameter specifies the generator function to be called.
l A single arg parameter, if specified, provides a 1-argument form of calling the function; alternatively, arg1”,
“arg2”, ... may be specified to form an array of arguments to pass to the generator.
nwa_bling
{nwa_bling }
Smarty registered template function. Adds various kinds of visual effects to the page.
Usage example:
{nwa_bling id=$some_id type=fade}
The “id parameter is the ID of the HTML element to which you will add bling’ effects The type parameter is the
kind of bling desired:
l “fade”: element smoothly fades in and out
l “blink”: element blinks slowly
nwa_makeid
{nwa_makeid …}
Dell Networking W-ClearPass Guest 6.2 | User Guide Reference | 391