ClearPass Guest 3.9 | Deployment Guide
Reference |
457
Programmer’s Reference
NwaAlnumPassword
NwaAlnumPassword($len)
Generates an alpha-numeric password (mixed case) of length
$len
characters.
NwaBoolFormat
NwaBoolFormat($value, $options = null)
Formats a boolean value as a string. If 3 function arguments are supplied, the 2nd and 3rd arguments are the
values to return for false and true, respectively. Otherwise, the
$options
parameter specifies how to do
the conversion:
If an integer 0 or 1, the string values “
0
” and “
1
” are returned.
If a string containing a “
|
” character, the string is split at this separator and used as the values for false
and true respectively.
If an array, the 0 and 1 index values are used for false and true values.
Otherwise, the string values “true” and “false” are returned.
NwaByteFormat
NwaByteFormat($bytes, $unknown = null)
Formats a non-negative size in bytes as a human readable number (bytes, KB, MB, GB, etc.) Assumes that 1
KB = 1024 bytes, 1 MB = 1024 KB, etc. If a negative value is supplied, returns the
$unknown
string. If a non-
numeric value is supplied, that value is returned directly.
NwaByteFormatBase10
NwaByteFormatBase10($bytes, $unknown = null)
Formats a non-negative size in bytes as a human readable number (bytes, KB, MB, GB, etc.) Assumes “base
10” rules in measurement; that is, 1 KB = 1000 bytes, 1 MB = 1000 KB, etc. If a negative value is supplied,
returns the
$unknown
string. If a non-numeric value is supplied, that value is returned directly.
NwaComplexPassword
NwaComplexPassword($len = 8)
Generates complex passwords of at least
$len
characters in length, where
$len
must be at least 4. A
complex password includes at least 1 each of a lower case character, upper case character, digit, and
punctuation (symbol).
NwaCsvCache
NwaCsvCache($csv_file, $use_cache = true, $options = null)
Loads and parses the contents of a CSV file, using a built-in cache. The cache may be cleaned for a specific
file by setting
$use_cache
to false. The cache may be cleaned for ALL files by setting
$csv_file
to the
empty string and
$use_cache
to false.
CSV parsing options (
“NwaParseCsv”
) may be specified in
$options
. Additionally, a 2-argument form
of this function may be used by passing an array of
$options
as the second argument; in this case,
$use_cache
is assumed to be true. This function returns false if the file does not exist; otherwise, returns
an array of arrays containing each of the parsed records from the file.
Summary of Contents for ClearPass Guest 3.9
Page 1: ...ClearPass Guest 3 9 Deployment Guide ...
Page 32: ...32 Management Overview ClearPass Guest 3 9 Deployment Guide ...
Page 178: ...178 RADIUS Services ClearPass Guest 3 9 Deployment Guide ...
Page 316: ...316 Guest Management ClearPass Guest 3 9 Deployment Guide ...
Page 410: ...410 Administrator Tasks ClearPass Guest 3 9 Deployment Guide ...
Page 414: ...414 Administrator Tasks ClearPass Guest 3 9 Deployment Guide ...
Page 423: ...ClearPass Guest 3 9 Deployment Guide Hotspot Manager 423 ...
Page 440: ...440 High Availability Services ClearPass Guest 3 9 Deployment Guide ...
Page 518: ...518 Index ClearPass Guest 3 9 Deployment Guide ...