Documentation

CoreSystem
in package

$this->core->system Class to interacto with with the System variables

Table of Contents

Properties

$api_path  : mixed
$app  : mixed
$app_path  : mixed
$app_url  : mixed
$config  : mixed
$format  : mixed
$geo  : mixed
$ip  : mixed
$lang  : mixed
$os  : mixed
$root_path  : mixed
$script_path  : mixed
$time_zone  : mixed
$url  : mixed
$user_agent  : mixed

Methods

__construct()  : mixed
getClientIP()  : mixed|string
Return the IP of the client: https://cloud.google.com/appengine/docs/standard/php7/runtime#https_and_forwarding_proxies
getOS()  : mixed
getRequestFingerPrint()  : array<string|int, mixed>
Generate a fingerprint from the Request
setTimeZone()  : mixed
Set default timezone and feed with $this->time_zone = array(date_default_timezone_get(), date('Y-m-d H:i:s'), date("P"), time());
urlRedirect()  : mixed

Properties

$api_path

public mixed $api_path

$app_path

public mixed $app_path

$app_url

public mixed $app_url

$config

public mixed $config = []

$format

public mixed $format

$root_path

public mixed $root_path

$script_path

public mixed $script_path

$time_zone

public mixed $time_zone

$user_agent

public mixed $user_agent

Methods

__construct()

public __construct([mixed $root_path = '' ]) : mixed
Parameters
$root_path : mixed = ''

getClientIP()

Return the IP of the client: https://cloud.google.com/appengine/docs/standard/php7/runtime#https_and_forwarding_proxies

public getClientIP() : mixed|string
Return values
mixed|string

getOS()

public getOS() : mixed

getRequestFingerPrint()

Generate a fingerprint from the Request

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

setTimeZone()

Set default timezone and feed with $this->time_zone = array(date_default_timezone_get(), date('Y-m-d H:i:s'), date("P"), time());

public setTimeZone( $timezone) : mixed
Parameters
$timezone :

urlRedirect()

public urlRedirect( $url[, string $dest = '' ]) : mixed
Parameters
$url :

path for destination ($dest is empty) or for source ($dest if not empty)

$dest : string = ''

Optional destination. If empty, destination will be $url


        
On this page

Search results