\Avarice
One of se7en deadly sins
Synopsis
class Avarice
{
- // members
- private array $data = ;
- private string $serial = '';
- private array $raw = ;
- private string $ident = 'HN';
- // methods
- public void __construct()
- protected string xoror()
- protected string pack()
- protected string unpack()
- protected void load()
- protected void getSerial()
- protected bool check()
- public array runtime()
- public array getLicenseKeys()
- protected bool checkLicenseValidity()
- public void deleteKey()
- public bool createKey()
- public void updateKey()
Members
private
- $data
- $ident
- $raw
- $serial
Methods
protected
- check() — checks module license availability
- checkLicenseValidity() — check license key before storing it
- getSerial() — sets ubilling system key into private key prop
- load() — loads all stored licenses into private data prop
- pack() — packs xorored binary data into storable ascii data
- unpack() — unpack packed ascii data into xorored binary
- xoror() — encodes data string by some key
public
- __construct()
- createKey() — installs new license key
- deleteKey() — deletes key database record
- getLicenseKeys() — returns list available license keys
- runtime() — returns module runtime
- updateKey() — updates existing license key