Platform
class Platform (View source)
The Platform class.
Methods
__construct(array $server = array())
Platform constructor.
boolean
isWeb()
isWeb
boolean
isCli()
isCli
string
getOS()
getOS
bool
isWin()
isWin
bool
isUnix()
isUnix
bool
isLinux()
isLinux
string
getUname()
Method to get property Uname
string
getWorkingDirectory()
getWorkingDirectory
string
getRoot(bool $full = true)
getRoot
string
getServerPublicRoot()
getDocumentRoot
string
getEntry(bool $full = true)
getEntry
string
getRequestUri(bool $withParams = true)
getRequestUri
string
getHost()
getHost
string
getPort()
getPort
string
getScheme()
getScheme
Details
at line line 44
__construct(array $server = array())
Platform constructor.
at line line 54
boolean
isWeb()
isWeb
at line line 64
boolean
isCli()
isCli
at line line 76
string
getOS()
getOS
at line line 92
bool
isWin()
isWin
at line line 104
bool
isUnix()
isUnix
at line line 127
bool
isLinux()
isLinux
at line line 151
string
getUname()
Method to get property Uname
at line line 175
string
getWorkingDirectory()
getWorkingDirectory
at line line 187
string
getRoot(bool $full = true)
getRoot
at line line 197
string
getServerPublicRoot()
getDocumentRoot
at line line 209
string
getEntry(bool $full = true)
getEntry
at line line 239
string
getRequestUri(bool $withParams = true)
getRequestUri
at line line 254
string
getHost()
getHost
at line line 264
string
getPort()
getPort
at line line 274
string
getScheme()
getScheme