Dell Powerconnect W-ClearPass Hardware Appliances W-ClearPass Guest 6.0 Deploy - Page 283

NwaByteFormat, NwaByteFormatBase10, NwaComplexPassword, NwaCsvCache, NwaDigitsPassword($len)

Page 283 highlights

l If an array, the 0 and 1 index values are used for false and true values. l 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 (see "NwaParseCsv" on page 284) 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. NwaDigitsPassword($len) NwaDigitsPassword($len) Generates digit-only passwords of at least $len characters in length. NwaDynamicLoad NwaDynamicLoad($func) Loads the PHP function $func for use in the current expression or code block. Returns true if the function exists (that is, the function is already present or was loaded successfully), or false if the function does not exist. NOTE: Attempting to use an undefined function will result in a PHP Fatal Error. Use this function before using any of the standard Nwa...() functions. NwaGeneratePictureString NwaGeneratePictureString($string) Dell Networking W-ClearPass Guest 6.0 | Deployment Guide NwaByteFormat | 283

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313
  • 314
  • 315
  • 316
  • 317
  • 318
  • 319
  • 320

l
If an array, the 0 and 1 index values are used for false and true values.
l
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 (see
"NwaParseCsv" on page 284
) 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.
NwaDigitsPassword($len)
NwaDigitsPassword($len)
Generates digit-only passwords of at least $len characters in length.
NwaDynamicLoad
NwaDynamicLoad($func)
Loads the PHP function
$func
for use in the current expression or code block. Returns true if the function exists
(that is, the function is already present or was loaded successfully), or false if the function does not exist.
NOTE: Attempting to use an undefined function will result in a PHP Fatal Error. Use this function before using any of the
standard Nwa…() functions.
NwaGeneratePictureString
NwaGeneratePictureString($string)
Dell Networking W-ClearPass Guest 6.0 | Deployment Guide
NwaByteFormat |
283