Methods summary
public
|
|
public static
|
#
DBD( $inData, boolean $die = false )
Debug and die function prints debug data. If second param is true it terminates the script.
Debug and die function prints debug data. If second param is true it terminates the script.
Parameters
- $inData
- $die
- (terminates the script if true, defaults to false)
|
public static
|
#
MakeLog( $logdir, $filename, $logstr )
Make log Files
Parameters
- $logdir
- $filename
- $logstr
|
public static
string
|
#
Crypto( $inData, string $opt = "D" )
Method to Encrypt & Decrypt Data Second Parameter wid D required for decryption only.
Method to Encrypt & Decrypt Data Second Parameter wid D required for decryption only.
Parameters
Returns
string
|
public static
string
|
#
GenerateHash( $plainPassword, string $saltKey = null )
Generate a non reversible secure hash
Generate a non reversible secure hash
Parameters
- $plainPassword
- $saltKey
- (Optional)
Returns
string
|
public static
string
|
#
GenerateAPIKey( $digestString )
Generates a secure non reversible API Key
Generates a secure non reversible API Key
Parameters
Returns
string
|
public static
string
|
#
GenerateSecret( $digestString )
Generates a small salted CRC32B Secret
Generates a small salted CRC32B Secret
Parameters
Returns
string
|
public static
mixed
|
#
escapeString( $string )
Escape Strings
Parameters
Returns
mixed
|
public static
array|mixed
|
#
FilterInput( $inData, boolean $keepHTML = false )
Filters user input
Parameters
Returns
array|mixed
|
public static
|
#
GiveResponse( $inData )
Give JSON formatted response suited for APIS
Give JSON formatted response suited for APIS
Parameters
|
public static
|
#
GiveJSON( $inData )
Give JSON response suited for APIS
Give JSON response suited for APIS
Parameters
|
public static
|
#
GiveError( $errorCode, $errorMessage )
Give JSON formatted error response suited for APIS
Give JSON formatted error response suited for APIS
Parameters
|