WPDK  1.5.0
WordPress Development Kit
 All Data Structures Files Functions Variables Pages
WPDKCrypt Class Reference
Inheritance diagram for WPDKCrypt:
WPDKObject

Static Public Member Functions

static uniqcode ($prefix= '', $posfix= '', $max_length=64)
 Generatean unique code. More...
 
static randomAlphaNumber ($len=8, $extra= '#,!,.')
 Generate a random code. More...
 
- Static Public Member Functions inherited from WPDKObject
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...
 

Data Fields

 $__version = '0.9.1'
 Version. More...
 
- Data Fields inherited from WPDKObject
 $__version = '1.0.0'
 The version number assigned to the class. More...
 

Additional Inherited Members

- Public Member Functions inherited from WPDKObject
 __className ()
 Returns the class object. More...
 
 __parentClass ()
 Returns the class object for the receiver’s superclass. More...
 
 __isClass ($class)
 Brief. More...
 
 __isSubclassOfClass ($class)
 Return TRUE if the receiving class is a subclass of —or identical to— $class, otherwise FALSE. More...
 

Detailed Description

Utility class for crypting, password and unique code

Author
=undo= info@.nosp@m.wpxt.nosp@m.re.me
Date
2014-01-08
Version
0.9.1

Definition at line 13 of file wpdk-crypt.php.

Member Function Documentation

static randomAlphaNumber (   $len = 8,
  $extra = '#,
,
.'   
)
static

Generate a random code.

Return a random string with alfa number characters.

Parameters
int$lenLength of result , default 8
string$extraExtra 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$prefixOptional
string$posfixOptional
int$max_lengthLength of result, default 64
Returns
string

Definition at line 35 of file wpdk-crypt.php.

Field Documentation

string $__version = '0.9.1'

Version.

Override version

Definition at line 22 of file wpdk-crypt.php.


The documentation for this class was generated from the following file: