PHP Class Linux, phpsysinfo

Inheritance: extends Plataforma
Afficher le fichier Open project: phpsysinfo/phpsysinfo Class Usage Examples

Protected Properties

Свойство Type Description
$_cpu_loads Assoc array of all CPUs loads.

Méthodes publiques

Méthode Description
__construct ( ) call parent constructor
build ( ) : Void get the information

Méthodes protégées

Méthode 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

Méthode 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 méthode

call parent constructor
public __construct ( )

_cpuinfo() protected méthode

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

_distro() protected méthode

Distribution
protected _distro ( ) : void
Résultat void

_hostname() protected méthode

Hostname
protected _hostname ( ) : void
Résultat void

_i2c() protected méthode

I2C devices
protected _i2c ( ) : void
Résultat void

_loadavg() protected méthode

Processor Load optionally create a loadbar
protected _loadavg ( ) : void
Résultat void

_memory() protected méthode

Physical memory information and Swap Space information
protected _memory ( ) : void
Résultat void

_network() protected méthode

Network devices includes also rx/tx bytes
protected _network ( ) : void
Résultat void

_parseProcStat() protected méthode

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
Résultat integer

_processes() protected méthode

Processes
protected _processes ( ) : void
Résultat void

_uptime() protected méthode

UpTime time the system is running
protected _uptime ( ) : void
Résultat void

build() public méthode

get the information
See also: PSI_Interface_OS::build()
public build ( ) : Void
Résultat Void

Property Details

$_cpu_loads protected_oe property

Assoc array of all CPUs loads.
protected $_cpu_loads