PHP Класс Linux, phpsysinfo

Наследование: extends Plataforma
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_cpu_loads Assoc array of all CPUs loads.

Открытые методы

Метод Описание
__construct ( ) call parent constructor
build ( ) : Void get the information

Защищенные методы

Метод Описание
_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

Приватные методы

Метод Описание
_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

Описание методов

__construct() публичный Метод

call parent constructor
public __construct ( )

_cpuinfo() защищенный Метод

CPU information All of the tags here are highly architecture dependant.
protected _cpuinfo ( ) : void
Результат void

_distro() защищенный Метод

Distribution
protected _distro ( ) : void
Результат void

_hostname() защищенный Метод

Hostname
protected _hostname ( ) : void
Результат void

_i2c() защищенный Метод

I2C devices
protected _i2c ( ) : void
Результат void

_loadavg() защищенный Метод

Processor Load optionally create a loadbar
protected _loadavg ( ) : void
Результат void

_memory() защищенный Метод

Physical memory information and Swap Space information
protected _memory ( ) : void
Результат void

_network() защищенный Метод

Network devices includes also rx/tx bytes
protected _network ( ) : void
Результат void

_parseProcStat() защищенный Метод

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
Результат integer

_processes() защищенный Метод

Processes
protected _processes ( ) : void
Результат void

_uptime() защищенный Метод

UpTime time the system is running
protected _uptime ( ) : void
Результат void

build() публичный Метод

get the information
См. также: PSI_Interface_OS::build()
public build ( ) : Void
Результат Void

Описание свойств

$_cpu_loads защищенное свойство

Assoc array of all CPUs loads.
protected $_cpu_loads