|
UNA
|
Public Member Functions | |
| __clone () | |
| getNewKey ($aData=false, $iExpire=604800, $sSalt='') | |
| getNewKeyExt ($aData=false, $iExpire=604800, $aParams=[]) | |
| getNewKeyNumeric ($aData=false, $iExpire=604800) | |
| isKeyExists ($sKey, $sSalt='') | |
| getKeyData ($sKey, $sSalt='') | |
| removeKey ($sKey) | |
| prune () | |
Static Public Member Functions | |
| static | getInstance () |
Protected Member Functions | |
| __construct () | |
Protected Attributes | |
| $_oQuery | |
Key objects - automatically generate hashed keys.
Generate new hashed key:
Check if hashed key exists:
|
protected |
Constructor
Reimplemented from BxDolFactory.
| BxDolKey::__clone | ( | ) |
Prevent cloning the instance
|
static |
Get singleton instance of the class
Implements iBxDolSingleton.
| BxDolKey::getKeyData | ( | $sKey, | |
| $sSalt = '' ) |
Get key data.
| $sKey | - key string |
| BxDolKey::getNewKey | ( | $aData = false, | |
| $iExpire = 604800, | |||
| $sSalt = '' ) |
Get new key.
| $aData | - some data to associate with the key |
| $iExpire | - number of seconds to generated key after, by default - 1 week |
| BxDolKey::getNewKeyExt | ( | $aData = false, | |
| $iExpire = 604800, | |||
| $aParams = [] ) |
Get new key with params.
| $aData | - some data to associate with the key |
| $iExpire | - number of seconds to generated key after, by default - 1 week |
| BxDolKey::getNewKeyNumeric | ( | $aData = false, | |
| $iExpire = 604800 ) |
Get new key (numeric).
| $aData | - some data to associate with the key |
| $iExpire | - number of seconds to generated key after, by default - 1 week |
| BxDolKey::isKeyExists | ( | $sKey, | |
| $sSalt = '' ) |
Check if provided key exists.
| $sKey | - key string |
| BxDolKey::prune | ( | ) |
Delete expired keys.
| BxDolKey::removeKey | ( | $sKey | ) |
Delete provided key.
| $sKey | - key string |