Overview

Namespaces

  • Core
    • BaseClasses
    • Cookie
    • Crontab
    • DB
    • Input
    • Mailer
    • Middleware
      • Auth
      • CSRF
    • Route
    • Session
    • System
  • None

Classes

  • System
  • Overview
  • Namespace
  • Class

Class System

Namespace: Core\System
Located at System.php
Methods summary
public
# __construct( )

System constructor.

System constructor.

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

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

$inData
$opt

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

$digestString

Returns

string
public static string
# GenerateSecret( $digestString )

Generates a small salted CRC32B Secret

Generates a small salted CRC32B Secret

Parameters

$digestString

Returns

string
public static mixed
# escapeString( $string )

Escape Strings

Escape Strings

Parameters

$string

Returns

mixed
public static array|mixed
# FilterInput( $inData, boolean $keepHTML = false )

Filters user input

Filters user input

Parameters

$inData
$keepHTML

Returns

array|mixed
public static
# GiveResponse( $inData )

Give JSON formatted response suited for APIS

Give JSON formatted response suited for APIS

Parameters

$inData
public static
# GiveJSON( $inData )

Give JSON response suited for APIS

Give JSON response suited for APIS

Parameters

$inData
public static
# GiveError( $errorCode, $errorMessage )

Give JSON formatted error response suited for APIS

Give JSON formatted error response suited for APIS

Parameters

$errorCode
$errorMessage
API documentation generated by ApiGen