PHP Class Pop\Web\Server

Author: Nick Sagona, III ([email protected])
Datei anzeigen Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Property Type Description
$distro string Server Distribution
$linux boolean Linux flag
$mac boolean Mac flag
$os string Server OS
$php string PHP Version
$server string Server Software
$serverVersion string Server Software Version
$software string Full Server Software String
$unix boolean Unix flag
$windows boolean Windows flag

Public Methods

Method Description
__construct ( ) : Server Constructor
getDistro ( ) : string Method to get distro
getOs ( ) : string Method to get OS
getPhp ( ) : string Method to get PHP version
getServer ( ) : string Method to get server
getServerVersion ( ) : string Method to get server version
getSoftware ( ) : string Method to get software
isLinux ( ) : boolean Method to get Linux flag
isMac ( ) : boolean Method to get Mac flag
isUnix ( ) : boolean Method to get Unix flag
isWindows ( ) : boolean Method to get Windows flag

Protected Methods

Method Description
detect ( ) : void Method to detect properties.

Method Details

__construct() public method

Instantiate the server session object.
public __construct ( ) : Server
return Server

detect() protected method

Method to detect properties.
protected detect ( ) : void
return void

getDistro() public method

Method to get distro
public getDistro ( ) : string
return string

getOs() public method

Method to get OS
public getOs ( ) : string
return string

getPhp() public method

Method to get PHP version
public getPhp ( ) : string
return string

getServer() public method

Method to get server
public getServer ( ) : string
return string

getServerVersion() public method

Method to get server version
public getServerVersion ( ) : string
return string

getSoftware() public method

Method to get software
public getSoftware ( ) : string
return string

isLinux() public method

Method to get Linux flag
public isLinux ( ) : boolean
return boolean

isMac() public method

Method to get Mac flag
public isMac ( ) : boolean
return boolean

isUnix() public method

Method to get Unix flag
public isUnix ( ) : boolean
return boolean

isWindows() public method

Method to get Windows flag
public isWindows ( ) : boolean
return boolean

Property Details

$distro protected_oe property

Server Distribution
protected string $distro
return string

$linux protected_oe property

Linux flag
protected bool $linux
return boolean

$mac protected_oe property

Mac flag
protected bool $mac
return boolean

$os protected_oe property

Server OS
protected string $os
return string

$php protected_oe property

PHP Version
protected string $php
return string

$server protected_oe property

Server Software
protected string $server
return string

$serverVersion protected_oe property

Server Software Version
protected string $serverVersion
return string

$software protected_oe property

Full Server Software String
protected string $software
return string

$unix protected_oe property

Unix flag
protected bool $unix
return boolean

$windows protected_oe property

Windows flag
protected bool $windows
return boolean