\

Namespaces

__MethodCaller
HelpClasses

Classes

Access Supposed to manage messages forwarding, etc
api Controls output flow, error messages displaying
apiException Custom exception
Auth Authorization and current account control
Chat Chat object
Contacts Contacts class
db DB utils and autoload via classes
FieldChecker Field Checker
FieldsContainer Fields Container
funcs Functions
Message Messages Object
msgAccess Get forwarded messages with msgAccess
Pages Pages class
Report Report class
rqHeuristic rqHeuristic
security Security class
User User class

Constants

__METHOD_GET_VARIABLE_NAME

__METHOD_GET_VARIABLE_NAME = "___method_|_name_|_context_|"

Name of GET-variable, which contains User-requested name of method, given by Apache

CONTENT_TYPE

CONTENT_TYPE = isset($_SERVER["CONTENT_TYPE"]) ? trim($_SERVER["CONTENT_TYPE"]) : ''

Requested and supported CONTENT_TYPE

CURRENT_METHOD

CURRENT_METHOD = \__MethodCaller\__Call::GetData()[1]

Current method name

DB_CONNECTION_SUCCESS

DB_CONNECTION_SUCCESS = true

Connection success status

DBCHARSET

DBCHARSET = 'utf8mb4'

Database text encoding

DBDSN

DBDSN = 'mysql:host=' . DBHOST . ';dbname=' . DBNAME . ';charset=' . DBCHARSET

Auth data string for PDO

DBHOST

DBHOST = 'host'

DB host to connect

DBNAME

DBNAME = 'name'

Database name

DBOPT

DBOPT = array(\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, \PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_LAZY, \PDO::ATTR_EMULATE_PREPARES => false)

PDO global settings

DBPASS

DBPASS = 'pass'

Password of DB account

DBUSER

DBUSER = 'user'

Username of DB account

DEBUG_MODE

DEBUG_MODE = true

Developer mode

HOME

HOME = $_SERVER['DOCUMENT_ROOT']

Filesystem home dir

MCP_PREDEFINED

MCP_PREDEFINED = $r

MCP-Config variable

RESPONSE_TYPE

RESPONSE_TYPE = "JSON"

Response type

URL

URL = 'https://sominemo.top'

HTTP Home dir

Functions

__ExceptionToArray()

__ExceptionToArray(\Exception  $e) : array

Exception To Array

Turnes \Exception object to Array

Parameters

\Exception $e

Input data

Returns

array —

Output array

_fatalErrorShutdownHandler()

_fatalErrorShutdownHandler() : void

Fatal Error Shutdown Handler

Extreme output and terminate

_handleError()

_handleError(integer  $code, string  $description, string  $file = null, integer  $line = null, array<mixed,string>  $context = null) : void

Hanlde error

Format, log, terminate

Parameters

integer $code

Error code

string $description

Description

string $file

File

integer $line

Line

array<mixed,string> $context

Context

_handleException()

_handleException(\Exception  $e) : void

Global Exception Handler

Writes logs and terminates, does all apiException's work

Parameters

\Exception $e

Unhandled exception

_logError()

_logError(array  $data = array()) : void

Writes report and terminates

Function-helper

Parameters

array $data

Error array