Arikaim CMS

System
in package

Core system helper class

Table of Contents

Constants

LINUX  = 3
OSX  = 4
UNKNOWN  = 1
WINDOWS  = 2

Methods

__call()  : mixed
Call static methods from instance
getApacheModules()  : array<string|int, mixed>
Get apache modules
getApacheUser()  : string
Get apache current user
getApacheVersion()  : string|null
Get apache version
getBacktrace()  : array<string|int, mixed>
Get debug backtrace
getDefaultOutput()  : string
Get default output
getInfo()  : array<string|int, mixed>
Get system info
getNodeJsVersion()  : string
Get nodejs version
getOpcache()  : array<string|int, mixed>
Get opcache status
getOS()  : int
Return OS
getPdoDrivers()  : array<string|int, mixed>
Return PDO drivers list
getPhpConsoleVersion()  : mixed
Get php console ver
getPhpExtensions()  : array<string|int, mixed>
Return php extensions list
getPhpExtensionVersion()  : string|null
Return php extension version
getPhpVersion()  : string
Return php version
getStreamTransports()  : array<string|int, mixed>
Get registered socket transports
getStreamWrappers()  : array<string|int, mixed>
Return Stream wrappers
getSystemInfo()  : array<string|int, mixed>
Get system info
hasPdoDriver()  : bool
Return true if PDO driver is installed
hasPhpExtension()  : bool
Return true if php extension is instaed
hasStreamWrapper()  : bool
Return true if stream wrapper are installed
isConsole()  : bool
Return true if script is run in console
setTimeLimit()  : void
Set script execution tile limit (0 - unlimited)
writeLine()  : void
Output text

Constants

UNKNOWN

public mixed UNKNOWN = 1

WINDOWS

public mixed WINDOWS = 2

Methods

__call()

Call static methods from instance

public __call(string $name, array<string|int, mixed> $arguments) : mixed
Parameters
$name : string
$arguments : array<string|int, mixed>

getApacheModules()

Get apache modules

public static getApacheModules() : array<string|int, mixed>
Return values
array<string|int, mixed>

getApacheUser()

Get apache current user

public static getApacheUser() : string
Return values
string

getApacheVersion()

Get apache version

public static getApacheVersion() : string|null
Return values
string|null

getBacktrace()

Get debug backtrace

public static getBacktrace() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDefaultOutput()

Get default output

public static getDefaultOutput() : string
Return values
string

getInfo()

Get system info

public getInfo() : array<string|int, mixed>
Return values
array<string|int, mixed>

getNodeJsVersion()

Get nodejs version

public static getNodeJsVersion() : string
Return values
string

getOpcache()

Get opcache status

public static getOpcache() : array<string|int, mixed>
Return values
array<string|int, mixed>

getOS()

Return OS

public static getOS() : int
Return values
int

getPdoDrivers()

Return PDO drivers list

public static getPdoDrivers() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPhpConsoleVersion()

Get php console ver

public static getPhpConsoleVersion() : mixed

getPhpExtensions()

Return php extensions list

public getPhpExtensions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPhpExtensionVersion()

Return php extension version

public static getPhpExtensionVersion(string $phpExtensionName) : string|null
Parameters
$phpExtensionName : string
Return values
string|null

getPhpVersion()

Return php version

public static getPhpVersion() : string
Return values
string

getStreamTransports()

Get registered socket transports

public static getStreamTransports() : array<string|int, mixed>
Return values
array<string|int, mixed>

getStreamWrappers()

Return Stream wrappers

public static getStreamWrappers() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSystemInfo()

Get system info

public static getSystemInfo() : array<string|int, mixed>
Return values
array<string|int, mixed>

hasPdoDriver()

Return true if PDO driver is installed

public static hasPdoDriver(string $driverName) : bool
Parameters
$driverName : string
Return values
bool

hasPhpExtension()

Return true if php extension is instaed

public static hasPhpExtension(string $phpExtensionName) : bool
Parameters
$phpExtensionName : string
Return values
bool

hasStreamWrapper()

Return true if stream wrapper are installed

public static hasStreamWrapper(string $protocol) : bool
Parameters
$protocol : string
Return values
bool

isConsole()

Return true if script is run in console

public static isConsole() : bool
Return values
bool

setTimeLimit()

Set script execution tile limit (0 - unlimited)

public static setTimeLimit(int $time) : void
Parameters
$time : int

writeLine()

Output text

public static writeLine(string|null $text[, string|null $eof = null ]) : void
Parameters
$text : string|null
$eof : string|null = null

        
On this page

Search results