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
public
mixed
$app
$app_path
public
mixed
$app_path
$app_url
public
mixed
$app_url
$config
public
mixed
$config
= []
$format
public
mixed
$format
$geo
public
mixed
$geo
$ip
public
mixed
$ip
$lang
public
mixed
$lang
$os
public
mixed
$os
$root_path
public
mixed
$root_path
$script_path
public
mixed
$script_path
$time_zone
public
mixed
$time_zone
$url
public
mixed
$url
$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|stringgetOS()
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
urlRedirect()
public
urlRedirect( $url[, string $dest = '' ]) : mixed