|
static | uniqcode ($prefix= '', $posfix= '', $max_length=64) |
| Generatean unique code. More...
|
|
static | randomAlphaNumber ($len=8, $extra= '#,!,.') |
| Generate a random code. More...
|
|
static | __delta ($last_version, $old_version) |
| Object delta compare for combine. More...
|
|
static | delta ($last_version, $old_version) |
|
static | __dump ($var, $monitor=false) |
| Dump a variable. More...
|
|
Utility class for crypting, password and unique code
- Author
- =undo= info@.nosp@m.wpxt.nosp@m.re.me
- Copyright
- Copyright (C) 2012-2013 wpXtreme Inc. All Rights Reserved.
- Date
- 2014-01-08
- Version
- 0.9.1
Definition at line 13 of file wpdk-crypt.php.
static randomAlphaNumber |
( |
|
$len = 8 , |
|
|
|
$extra = '# , |
|
|
! |
, |
|
|
.' |
|
|
) |
| |
|
static |
Generate a random code.
Return a random string with alfa number characters.
- Parameters
-
int | $len | Length of result , default 8 |
string | $extra | Extra characters, default = '#,!,.' |
- Returns
- string
Definition at line 55 of file wpdk-crypt.php.
static uniqcode |
( |
|
$prefix = '' , |
|
|
|
$posfix = '' , |
|
|
|
$max_length = 64 |
|
) |
| |
|
static |
Generatean unique code.
Return a $max_length char unique code (in hexdecimal) with optional prefix and postfix, keep the length at $max_length.
- Parameters
-
string | $prefix | Optional |
string | $posfix | Optional |
int | $max_length | Length of result, default 64 |
- Returns
- string
Definition at line 35 of file wpdk-crypt.php.
string $__version = '0.9.1' |
The documentation for this class was generated from the following file: