PHP Class Linux, phpsysinfo

Inheritance: extends Plataforma
Mostrar archivo Open project: phpsysinfo/phpsysinfo Class Usage Examples

Protected Properties

Property Type Description
$_cpu_loads Assoc array of all CPUs loads.

Public Methods

Method Description
__construct ( ) call parent constructor
build ( ) : Void get the information

Protected Methods

Method Description
_cpuinfo ( ) : void CPU information All of the tags here are highly architecture dependant.
_distro ( ) : void Distribution
_hostname ( ) : void Hostname
_i2c ( ) : void I2C devices
_loadavg ( ) : void Processor Load optionally create a loadbar
_memory ( ) : void Physical memory information and Swap Space information
_network ( ) : void Network devices includes also rx/tx bytes
_parseProcStat ( String $cpuline ) : integer fill the load for a individual cpu, through parsing /proc/stat for the specified cpu
_processes ( ) : void Processes
_uptime ( ) : void UpTime time the system is running

Private Methods

Method Description
_filesystems ( ) : void filesystem information
_ide ( ) : void IDE devices
_kernel ( ) : void Kernel Version
_machine ( ) : void Machine
_pci ( ) : void PCI devices
_scsi ( ) : void SCSI devices
_usb ( ) : array USB devices
setRaspberry ( $revihex, $cpupart ) : CPU Set Raspberry device name

Method Details

__construct() public method

call parent constructor
public __construct ( )

_cpuinfo() protected method

CPU information All of the tags here are highly architecture dependant.
protected _cpuinfo ( ) : void
return void

_distro() protected method

Distribution
protected _distro ( ) : void
return void

_hostname() protected method

Hostname
protected _hostname ( ) : void
return void

_i2c() protected method

I2C devices
protected _i2c ( ) : void
return void

_loadavg() protected method

Processor Load optionally create a loadbar
protected _loadavg ( ) : void
return void

_memory() protected method

Physical memory information and Swap Space information
protected _memory ( ) : void
return void

_network() protected method

Network devices includes also rx/tx bytes
protected _network ( ) : void
return void

_parseProcStat() protected method

fill the load for a individual cpu, through parsing /proc/stat for the specified cpu
protected _parseProcStat ( String $cpuline ) : integer
$cpuline String cpu for which load should be meassured
return integer

_processes() protected method

Processes
protected _processes ( ) : void
return void

_uptime() protected method

UpTime time the system is running
protected _uptime ( ) : void
return void

build() public method

get the information
See also: PSI_Interface_OS::build()
public build ( ) : Void
return Void

Property Details

$_cpu_loads protected_oe property

Assoc array of all CPUs loads.
protected $_cpu_loads