Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2976 → Rev 3037

/web/acc/phpsysinfo/includes/to/class.System.inc.php
28,7 → 28,7
/**
* name of the host where phpSysInfo runs
*
* @var String
* @var string
*/
private $_hostname = "localhost";
 
35,14 → 35,14
/**
* ip of the host where phpSysInfo runs
*
* @var String
* @var string
*/
private $_ip = "127.0.0.1";
 
/**
* detailed Information about the kernel
* detailed information about the kernel
*
* @var String
* @var string
*/
private $_kernel = "Unknown";
 
49,7 → 49,7
/**
* name of the distribution
*
* @var String
* @var string
*/
private $_distribution = "Unknown";
 
56,7 → 56,7
/**
* icon of the distribution (must be available in phpSysInfo)
*
* @var String
* @var string
*/
private $_distributionIcon = "unknown.png";
 
63,7 → 63,7
/**
* detailed Information about the machine name
*
* @var String
* @var string
*/
private $_machine = "";
 
70,7 → 70,7
/**
* time in sec how long the system is running
*
* @var Integer
* @var int
*/
private $_uptime = 0;
 
77,7 → 77,7
/**
* count of users that are currently logged in
*
* @var Integer
* @var int
*/
private $_users = 0;
 
84,7 → 84,7
/**
* load of the system
*
* @var String
* @var string
*/
private $_load = "";
 
91,7 → 91,7
/**
* load of the system in percent (all cpus, if more than one)
*
* @var Integer
* @var int
*/
private $_loadPercent = null;
 
197,7 → 197,7
/**
* free memory in bytes
*
* @var Integer
* @var int
*/
private $_memFree = 0;
 
204,7 → 204,7
/**
* total memory in bytes
*
* @var Integer
* @var int
*/
private $_memTotal = 0;
 
211,7 → 211,7
/**
* used memory in bytes
*
* @var Integer
* @var int
*/
private $_memUsed = 0;
 
218,7 → 218,7
/**
* used memory by applications in bytes
*
* @var Integer
* @var int
*/
private $_memApplication = null;
 
225,7 → 225,7
/**
* used memory for buffers in bytes
*
* @var Integer
* @var int
*/
private $_memBuffer = null;
 
232,7 → 232,7
/**
* used memory for cache in bytes
*
* @var Integer
* @var int
*/
private $_memCache = null;
 
253,6 → 253,13
private $_processes = array();
 
/**
* array with Virtualizer information
*
* @var array
*/
private $_virtualizer = array();
 
/**
* remove duplicate Entries and Count
*
* @param array $arrDev list of HWDevices
291,7 → 298,7
* @see System::_memUsed
* @see System::_memTotal
*
* @return Integer
* @return int
*/
public function getMemPercentUsed()
{
308,7 → 315,7
* @see System::_memApplication
* @see System::_memTotal
*
* @return Integer
* @return int
*/
public function getMemPercentApplication()
{
329,7 → 336,7
* @see System::_memCache
* @see System::_memTotal
*
* @return Integer
* @return int
*/
public function getMemPercentCache()
{
354,7 → 361,7
* @see System::_memBuffer
* @see System::_memTotal
*
* @return Integer
* @return int
*/
public function getMemPercentBuffer()
{
385,7 → 392,7
* @see System::_swapDevices
* @see DiskDevice::getFree()
*
* @return Integer
* @return int
*/
public function getSwapFree()
{
407,7 → 414,7
* @see System::_swapDevices
* @see DiskDevice::getTotal()
*
* @return Integer
* @return int
*/
public function getSwapTotal()
{
429,7 → 436,7
* @see System::_swapDevices
* @see DiskDevice::getUsed()
*
* @return Integer
* @return int
*/
public function getSwapUsed()
{
451,7 → 458,7
* @see System::getSwapUsed()
* @see System::getSwapTotal()
*
* @return Integer
* @return int
*/
public function getSwapPercentUsed()
{
485,7 → 492,7
*
* @see System::$_distribution
*
* @return Void
* @return void
*/
public function setDistribution($distribution)
{
511,7 → 518,7
*
* @see System::$_distributionIcon
*
* @return Void
* @return void
*/
public function setDistributionIcon($distributionIcon)
{
537,7 → 544,7
*
* @see System::$_hostname
*
* @return Void
* @return void
*/
public function setHostname($hostname)
{
563,7 → 570,7
*
* @see System::$_ip
*
* @return Void
* @return void
*/
public function setIp($ip)
{
589,7 → 596,7
*
* @see System::$_kernel
*
* @return Void
* @return void
*/
public function setKernel($kernel)
{
615,7 → 622,7
*
* @see System::$_load
*
* @return Void
* @return void
*/
public function setLoad($load)
{
627,7 → 634,7
*
* @see System::$_loadPercent
*
* @return Integer
* @return int
*/
public function getLoadPercent()
{
637,11 → 644,11
/**
* Sets $_loadPercent.
*
* @param Integer $loadPercent load percent
* @param int $loadPercent load percent
*
* @see System::$_loadPercent
*
* @return Void
* @return void
*/
public function setLoadPercent($loadPercent)
{
667,7 → 674,7
*
* @see System::$_machine
*
* @return Void
* @return void
*/
public function setMachine($machine)
{
679,7 → 686,7
*
* @see System::$_uptime
*
* @return Integer
* @return int
*/
public function getUptime()
{
693,7 → 700,7
*
* @see System::$_uptime
*
* @return Void
* @return void
*/
public function setUptime($uptime)
{
705,7 → 712,7
*
* @see System::$_users
*
* @return Integer
* @return int
*/
public function getUsers()
{
715,11 → 722,11
/**
* Sets $_users.
*
* @param Integer $users user count
* @param int $users user count
*
* @see System::$_users
*
* @return Void
* @return void
*/
public function setUsers($users)
{
746,7 → 753,7
* @see System::$_cpus
* @see CpuDevice
*
* @return Void
* @return void
*/
public function setCpus($cpus)
{
777,7 → 784,7
* @see System::$_netDevices
* @see NetDevice
*
* @return Void
* @return void
*/
public function setNetDevices($netDevices)
{
804,7 → 811,7
* @see System::$_pciDevices
* @see HWDevice
*
* @return Void
* @return void
*/
public function setPciDevices($pciDevices)
{
831,7 → 838,7
* @see System::$_ideDevices
* @see HWDevice
*
* @return Void
* @return void
*/
public function setIdeDevices($ideDevices)
{
858,7 → 865,7
* @see System::$_scsiDevices
* @see HWDevice
*
* @return Void
* @return void
*/
public function setScsiDevices($scsiDevices)
{
885,7 → 892,7
* @see System::$_usbDevices
* @see HWDevice
*
* @return Void
* @return void
*/
public function setUsbDevices($usbDevices)
{
912,7 → 919,7
* @see System::$_tbDevices
* @see HWDevice
*
* @return Void
* @return void
*/
public function setTbDevices($tbDevices)
{
939,7 → 946,7
* @see System::$_i2cDevices
* @see HWDevice
*
* @return Void
* @return void
*/
public function setI2cDevices($i2cDevices)
{
966,7 → 973,7
* @see System::$_nvmeDevices
* @see HWDevice
*
* @return Void
* @return void
*/
public function setNvmeDevices($nvmeDevices)
{
993,7 → 1000,7
* @see System::$_memDevices
* @see HWDevice
*
* @return Void
* @return void
*/
public function setMemDevices($memDevices)
{
1032,7 → 1039,7
*
* @see System::$_memApplication
*
* @return Integer
* @return int
*/
public function getMemApplication()
{
1042,11 → 1049,11
/**
* Sets $_memApplication.
*
* @param Integer $memApplication application memory
* @param int $memApplication application memory
*
* @see System::$_memApplication
*
* @return Void
* @return void
*/
public function setMemApplication($memApplication)
{
1058,7 → 1065,7
*
* @see System::$_memBuffer
*
* @return Integer
* @return int
*/
public function getMemBuffer()
{
1068,11 → 1075,11
/**
* Sets $_memBuffer.
*
* @param Integer $memBuffer buffer memory
* @param int $memBuffer buffer memory
*
* @see System::$_memBuffer
*
* @return Void
* @return void
*/
public function setMemBuffer($memBuffer)
{
1084,7 → 1091,7
*
* @see System::$_memCache
*
* @return Integer
* @return int
*/
public function getMemCache()
{
1094,11 → 1101,11
/**
* Sets $_memCache.
*
* @param Integer $memCache cache memory
* @param int $memCache cache memory
*
* @see System::$_memCache
*
* @return Void
* @return void
*/
public function setMemCache($memCache)
{
1110,7 → 1117,7
*
* @see System::$_memFree
*
* @return Integer
* @return int
*/
public function getMemFree()
{
1120,11 → 1127,11
/**
* Sets $_memFree.
*
* @param Integer $memFree free memory
* @param int $memFree free memory
*
* @see System::$_memFree
*
* @return Void
* @return void
*/
public function setMemFree($memFree)
{
1136,7 → 1143,7
*
* @see System::$_memTotal
*
* @return Integer
* @return int
*/
public function getMemTotal()
{
1146,11 → 1153,11
/**
* Sets $_memTotal.
*
* @param Integer $memTotal total memory
* @param int $memTotal total memory
*
* @see System::$_memTotal
*
* @return Void
* @return void
*/
public function setMemTotal($memTotal)
{
1162,7 → 1169,7
*
* @see System::$_memUsed
*
* @return Integer
* @return int
*/
public function getMemUsed()
{
1172,11 → 1179,11
/**
* Sets $_memUsed.
*
* @param Integer $memUsed used memory
* @param int $memUsed used memory
*
* @see System::$_memUsed
*
* @return Void
* @return void
*/
public function setMemUsed($memUsed)
{
1203,7 → 1210,7
* @see System::$_swapDevices
* @see DiskDevice
*
* @return Void
* @return void
*/
public function setSwapDevices($swapDevices)
{
1229,7 → 1236,7
*
* @see System::$_processes
*
* @return Void
* @return void
*/
public function setProcesses($processes)
{
1240,4 → 1247,38
}
*/
}
 
/**
* Returns $_virtualizer.
*
* @see System::$_virtualizer
*
* @return array
*/
public function getVirtualizer()
{
return $this->_virtualizer;
}
 
/**
* Sets $_virtualizer.
*
* @param String $virtualizer virtualizername
* @param Bool|String $value true, false or virtualizername to replace
*
* @see System::$_virtualizer
*
* @return void
*/
public function setVirtualizer($virtualizer, $value = true)
{
if (!isset($this->_virtualizer[$virtualizer])) {
if (is_bool($value)) {
$this->_virtualizer[$virtualizer] = $value;
} else { // replace the virtualizer with another
$this->_virtualizer[$virtualizer] = true;
$this->_virtualizer[$value] = false;
}
}
}
}
/web/acc/phpsysinfo/includes/to/device/class.CpuDevice.inc.php
28,14 → 28,21
/**
* model of the cpu
*
* @var String
* @var string
*/
private $_model = "";
 
/**
* cpu voltage
*
* @var Float
*/
private $_voltage = 0;
 
/**
* speed of the cpu in hertz
*
* @var Integer
* @var int
*/
private $_cpuSpeed = 0;
 
42,7 → 49,7
/**
* max speed of the cpu in hertz
*
* @var Integer
* @var int
*/
private $_cpuSpeedMax = 0;
 
49,7 → 56,7
/**
* min speed of the cpu in hertz
*
* @var Integer
* @var int
*/
private $_cpuSpeedMin = 0;
 
56,7 → 63,7
/**
* cache size in bytes, if available
*
* @var Integer
* @var int
*/
private $_cache = null;
 
63,7 → 70,7
/**
* virtualization, if available
*
* @var String
* @var string
*/
private $_virt = null;
 
70,7 → 77,7
/**
* busspeed in hertz, if available
*
* @var Integer
* @var int
*/
private $_busSpeed = null;
 
77,7 → 84,7
/**
* bogomips of the cpu, if available
*
* @var Integer
* @var int
*/
private $_bogomips = null;
 
84,7 → 91,7
/**
* temperature of the cpu, if available
*
* @var Integer
* @var int
*/
private $_temp = null;
 
91,7 → 98,7
/**
* vendorid, if available
*
* @var String
* @var string
*/
private $_vendorid = null;
 
98,7 → 105,7
/**
* current load in percent of the cpu, if available
*
* @var Integer
* @var int
*/
private $_load = null;
 
121,7 → 128,7
*
* @see Cpu::$_model
*
* @return Void
* @return void
*/
public function setModel($model)
{
129,11 → 136,37
}
 
/**
* Returns $_voltage.
*
* @see Cpu::$_voltage
*
* @return Float
*/
public function getVoltage()
{
return $this->_voltage;
}
 
/**
* Sets $_voltage.
*
* @param int $voltage voltage
*
* @see Cpu::$_voltage
*
* @return void
*/
public function setVoltage($voltage)
{
$this->_voltage = $voltage;
}
 
/**
* Returns $_cpuSpeed.
*
* @see Cpu::$_cpuSpeed
*
* @return Integer
* @return int
*/
public function getCpuSpeed()
{
143,11 → 176,11
/**
* Sets $_cpuSpeed.
*
* @param Integer $cpuSpeed cpuspeed
* @param int $cpuSpeed cpuspeed
*
* @see Cpu::$_cpuSpeed
*
* @return Void
* @return void
*/
public function setCpuSpeed($cpuSpeed)
{
159,7 → 192,7
*
* @see Cpu::$_cpuSpeedMAx
*
* @return Integer
* @return int
*/
public function getCpuSpeedMax()
{
169,11 → 202,11
/**
* Sets $_cpuSpeedMax.
*
* @param Integer $cpuSpeedMax cpuspeedmax
* @param int $cpuSpeedMax cpuspeedmax
*
* @see Cpu::$_cpuSpeedMax
*
* @return Void
* @return void
*/
public function setCpuSpeedMax($cpuSpeedMax)
{
185,7 → 218,7
*
* @see Cpu::$_cpuSpeedMin
*
* @return Integer
* @return int
*/
public function getCpuSpeedMin()
{
195,11 → 228,11
/**
* Sets $_cpuSpeedMin.
*
* @param Integer $cpuSpeedMin cpuspeedmin
* @param int $cpuSpeedMin cpuspeedmin
*
* @see Cpu::$_cpuSpeedMin
*
* @return Void
* @return void
*/
public function setCpuSpeedMin($cpuSpeedMin)
{
211,7 → 244,7
*
* @see Cpu::$_cache
*
* @return Integer
* @return int
*/
public function getCache()
{
221,11 → 254,11
/**
* Sets $_cache.
*
* @param Integer $cache cache size
* @param int $cache cache size
*
* @see Cpu::$_cache
*
* @return Void
* @return void
*/
public function setCache($cache)
{
251,7 → 284,7
*
* @see Cpu::$_virt
*
* @return Void
* @return void
*/
public function setVirt($virt)
{
263,7 → 296,7
*
* @see Cpu::$_busSpeed
*
* @return Integer
* @return int
*/
public function getBusSpeed()
{
273,11 → 306,11
/**
* Sets $_busSpeed.
*
* @param Integer $busSpeed busspeed
* @param int $busSpeed busspeed
*
* @see Cpu::$_busSpeed
*
* @return Void
* @return void
*/
public function setBusSpeed($busSpeed)
{
289,7 → 322,7
*
* @see Cpu::$_bogomips
*
* @return Integer
* @return int
*/
public function getBogomips()
{
299,11 → 332,11
/**
* Sets $_bogomips.
*
* @param Integer $bogomips bogompis
* @param int $bogomips bogompis
*
* @see Cpu::$_bogomips
*
* @return Void
* @return void
*/
public function setBogomips($bogomips)
{
315,7 → 348,7
*
* @see Cpu::$_temp
*
* @return Integer
* @return int
*/
/*
public function getTemp()
327,11 → 360,11
/**
* Sets $_temp.
*
* @param Integer $temp temperature
* @param int $temp temperature
*
* @see Cpu::$_temp
*
* @return Void
* @return void
*/
/*
public function setTemp($temp)
359,11 → 392,11
*
* @see Cpu::$_vendorid
*
* @return Void
* @return void
*/
public function setVendorId($vendorid)
{
$this->_vendorid = $vendorid;
$this->_vendorid = trim(preg_replace('/[\s!]/', '', $vendorid));
}
 
/**
371,7 → 404,7
*
* @see CpuDevice::$_load
*
* @return Integer
* @return int
*/
public function getLoad()
{
381,11 → 414,11
/**
* Sets $_load.
*
* @param Integer $load load percent
* @param int $load load percent
*
* @see CpuDevice::$_load
*
* @return Void
* @return void
*/
public function setLoad($load)
{
/web/acc/phpsysinfo/includes/to/device/class.DiskDevice.inc.php
28,7 → 28,7
/**
* name of the disk device
*
* @var String
* @var string
*/
private $_name = "";
 
35,7 → 35,7
/**
* type of the filesystem on the disk device
*
* @var String
* @var string
*/
private $_fsType = "";
 
42,7 → 42,7
/**
* diskspace that is free in bytes
*
* @var Integer
* @var int
*/
private $_free = 0;
 
49,7 → 49,7
/**
* diskspace that is used in bytes
*
* @var Integer
* @var int
*/
private $_used = 0;
 
56,7 → 56,7
/**
* total diskspace
*
* @var Integer
* @var int
*/
private $_total = 0;
 
63,7 → 63,7
/**
* mount point of the disk device if available
*
* @var String
* @var string
*/
private $_mountPoint = null;
 
70,7 → 70,7
/**
* additional options of the device, like mount options
*
* @var String
* @var string
*/
private $_options = null;
 
77,7 → 77,7
/**
* inodes usage in percent if available
*
* @var Integer
* @var int
*/
private $_percentInodesUsed = null;
 
84,7 → 84,7
/**
* ignore mode
*
* @var Integer
* @var int
*/
private $_ignore = 0;
 
94,7 → 94,7
* @see DiskDevice::$_total
* @see DiskDevice::$_used
*
* @return Integer
* @return int
*/
public function getPercentUsed()
{
110,7 → 110,7
*
* @see DiskDevice::$_PercentInodesUsed
*
* @return Integer
* @return int
*/
public function getPercentInodesUsed()
{
120,11 → 120,11
/**
* Sets $_PercentInodesUsed.
*
* @param Integer $percentInodesUsed inodes percent
* @param int $percentInodesUsed inodes percent
*
* @see DiskDevice::$_PercentInodesUsed
*
* @return Void
* @return void
*/
public function setPercentInodesUsed($percentInodesUsed)
{
136,7 → 136,7
*
* @see DiskDevice::$_free
*
* @return Integer
* @return int
*/
public function getFree()
{
146,11 → 146,11
/**
* Sets $_free.
*
* @param Integer $free free bytes
* @param int $free free bytes
*
* @see DiskDevice::$_free
*
* @return Void
* @return void
*/
public function setFree($free)
{
162,7 → 162,7
*
* @see DiskDevice::$_fsType
*
* @return String
* @return string
*/
public function getFsType()
{
176,7 → 176,7
*
* @see DiskDevice::$_fsType
*
* @return Void
* @return void
*/
public function setFsType($fsType)
{
188,7 → 188,7
*
* @see DiskDevice::$_mountPoint
*
* @return String
* @return string
*/
public function getMountPoint()
{
198,11 → 198,11
/**
* Sets $_mountPoint.
*
* @param String $mountPoint mountpoint
* @param string $mountPoint mountpoint
*
* @see DiskDevice::$_mountPoint
*
* @return Void
* @return void
*/
public function setMountPoint($mountPoint)
{
214,7 → 214,7
*
* @see DiskDevice::$_name
*
* @return String
* @return string
*/
public function getName()
{
224,11 → 224,11
/**
* Sets $_name.
*
* @param String $name device name
* @param string $name device name
*
* @see DiskDevice::$_name
*
* @return Void
* @return void
*/
public function setName($name)
{
240,7 → 240,7
*
* @see DiskDevice::$_options
*
* @return String
* @return string
*/
public function getOptions()
{
250,11 → 250,11
/**
* Sets $_options.
*
* @param String $options additional options
* @param string $options additional options
*
* @see DiskDevice::$_options
*
* @return Void
* @return void
*/
public function setOptions($options)
{
266,7 → 266,7
*
* @see DiskDevice::$_total
*
* @return Integer
* @return int
*/
public function getTotal()
{
276,11 → 276,11
/**
* Sets $_total.
*
* @param Integer $total total bytes
* @param int $total total bytes
*
* @see DiskDevice::$_total
*
* @return Void
* @return void
*/
public function setTotal($total)
{
292,7 → 292,7
*
* @see DiskDevice::$_used
*
* @return Integer
* @return int
*/
public function getUsed()
{
302,11 → 302,11
/**
* Sets $_used.
*
* @param Integer $used used bytes
* @param int $used used bytes
*
* @see DiskDevice::$_used
*
* @return Void
* @return void
*/
public function setUsed($used)
{
318,7 → 318,7
*
* @see DiskDevice::$_ignore
*
* @return Integer
* @return int
*/
public function getIgnore()
{
330,7 → 330,7
*
* @see DiskDevice::$_ignore
*
* @return Void
* @return void
*/
public function setIgnore($ignore)
{
/web/acc/phpsysinfo/includes/to/device/class.HWDevice.inc.php
28,7 → 28,7
/**
* name of the device
*
* @var String
* @var string
*/
private $_name = "";
 
35,7 → 35,7
/**
* capacity of the device, if not available it will be null
*
* @var Integer
* @var int
*/
private $_capacity = null;
 
42,7 → 42,7
/**
* manufacturer of the device, if not available it will be null
*
* @var Integer
* @var int
*/
private $_manufacturer = null;
 
49,7 → 49,7
/**
* product of the device, if not available it will be null
*
* @var Integer
* @var int
*/
private $_product = null;
 
56,7 → 56,7
/**
* serial number of the device, if not available it will be null
*
* @var String
* @var string
*/
private $_serial = null;
 
77,7 → 77,7
/**
* count of the device
*
* @var Integer
* @var int
*/
private $_count = 1;
 
121,7 → 121,7
*
* @see HWDevice::$_name
*
* @return Void
* @return void
*/
public function setName($name)
{
147,7 → 147,7
*
* @see HWDevice::$_manufacturer
*
* @return Void
* @return void
*/
public function setManufacturer($manufacturer)
{
173,7 → 173,7
*
* @see HWDevice::$_product
*
* @return Void
* @return void
*/
public function setProduct($product)
{
199,7 → 199,7
*
* @see HWDevice::$_serial
*
* @return Void
* @return void
*/
public function setSerial($serial)
{
225,7 → 225,7
*
* @see HWDevice::$_speed
*
* @return Void
* @return void
*/
public function setSpeed($speed)
{
251,7 → 251,7
*
* @see HWDevice::$_voltage
*
* @return Void
* @return void
*/
public function setVoltage($voltage)
{
263,7 → 263,7
*
* @see HWDevice::$_capacity
*
* @return Integer
* @return int
*/
public function getCapacity()
{
273,11 → 273,11
/**
* Sets $_capacity.
*
* @param Integer $capacity device capacity
* @param int $capacity device capacity
*
* @see HWDevice::$_capacity
*
* @return Void
* @return void
*/
public function setCapacity($capacity)
{
289,7 → 289,7
*
* @see HWDevice::$_count
*
* @return Integer
* @return int
*/
public function getCount()
{
299,11 → 299,11
/**
* Sets $_count.
*
* @param Integer $count device count
* @param int $count device count
*
* @see HWDevice::$_count
*
* @return Void
* @return void
*/
public function setCount($count)
{
/web/acc/phpsysinfo/includes/to/device/class.NetDevice.inc.php
28,7 → 28,7
/**
* name of the device
*
* @var String
* @var string
*/
private $_name = "";
 
35,7 → 35,7
/**
* transmitted bytes
*
* @var Integer
* @var int
*/
private $_txBytes = 0;
 
42,7 → 42,7
/**
* received bytes
*
* @var Integer
* @var int
*/
private $_rxBytes = 0;
 
49,7 → 49,7
/**
* counted error packages
*
* @var Integer
* @var int
*/
private $_errors = 0;
 
56,7 → 56,7
/**
* counted droped packages
*
* @var Integer
* @var int
*/
private $_drops = 0;
 
63,7 → 63,7
/**
* string with info
*
* @var String
* @var string
*/
private $_info = null;
 
72,7 → 72,7
*
* @see NetDevice::$_drops
*
* @return Integer
* @return int
*/
public function getDrops()
{
82,11 → 82,11
/**
* Sets $_drops.
*
* @param Integer $drops dropped packages
* @param int $drops dropped packages
*
* @see NetDevice::$_drops
*
* @return Void
* @return void
*/
public function setDrops($drops)
{
98,7 → 98,7
*
* @see NetDevice::$_errors
*
* @return Integer
* @return int
*/
public function getErrors()
{
108,11 → 108,11
/**
* Sets $_errors.
*
* @param Integer $errors error packages
* @param int $errors error packages
*
* @see NetDevice::$_errors
*
* @return Void
* @return void
*/
public function setErrors($errors)
{
138,7 → 138,7
*
* @see NetDevice::$_name
*
* @return Void
* @return void
*/
public function setName($name)
{
150,7 → 150,7
*
* @see NetDevice::$_rxBytes
*
* @return Integer
* @return int
*/
public function getRxBytes()
{
160,11 → 160,11
/**
* Sets $_rxBytes.
*
* @param Integer $rxBytes received bytes
* @param int $rxBytes received bytes
*
* @see NetDevice::$_rxBytes
*
* @return Void
* @return void
*/
public function setRxBytes($rxBytes)
{
176,7 → 176,7
*
* @see NetDevice::$_txBytes
*
* @return Integer
* @return int
*/
public function getTxBytes()
{
186,11 → 186,11
/**
* Sets $_txBytes.
*
* @param Integer $txBytes transmitted bytes
* @param int $txBytes transmitted bytes
*
* @see NetDevice::$_txBytes
*
* @return Void
* @return void
*/
public function setTxBytes($txBytes)
{
216,7 → 216,7
*
* @see NetDevice::$_info
*
* @return Void
* @return void
*/
public function setInfo($info)
{
/web/acc/phpsysinfo/includes/to/device/class.SensorDevice.inc.php
28,7 → 28,7
/**
* name of the sensor
*
* @var String
* @var string
*/
private $_name = "";
 
35,7 → 35,7
/**
* current value of the sensor
*
* @var Integer
* @var int
*/
private $_value = 0;
 
42,7 → 42,7
/**
* maximum value of the sensor
*
* @var Integer
* @var int
*/
private $_max = null;
 
49,7 → 49,7
/**
* minimum value of the sensor
*
* @var Integer
* @var int
*/
private $_min = null;
 
56,7 → 56,7
/**
* event of the sensor
*
* @var String
* @var string
*/
private $_event = "";
 
63,7 → 63,7
/**
* unit of values of the sensor
*
* @var String
* @var string
*/
private $_unit = "";
 
72,7 → 72,7
*
* @see Sensor::$_max
*
* @return Integer
* @return int
*/
public function getMax()
{
82,11 → 82,11
/**
* Sets $_max.
*
* @param Integer $max maximum value
* @param int $max maximum value
*
* @see Sensor::$_max
*
* @return Void
* @return void
*/
public function setMax($max)
{
98,7 → 98,7
*
* @see Sensor::$_min
*
* @return Integer
* @return int
*/
public function getMin()
{
108,11 → 108,11
/**
* Sets $_min.
*
* @param Integer $min minimum value
* @param int $min minimum value
*
* @see Sensor::$_min
*
* @return Void
* @return void
*/
public function setMin($min)
{
138,7 → 138,7
*
* @see Sensor::$_name
*
* @return Void
* @return void
*/
public function setName($name)
{
150,7 → 150,7
*
* @see Sensor::$_value
*
* @return Integer
* @return int
*/
public function getValue()
{
160,11 → 160,11
/**
* Sets $_value.
*
* @param Integer $value current value
* @param int $value current value
*
* @see Sensor::$_value
*
* @return Void
* @return void
*/
public function setValue($value)
{
190,7 → 190,7
*
* @see Sensor::$_event
*
* @return Void
* @return void
*/
public function setEvent($event)
{
216,7 → 216,7
*
* @see Sensor::$_unit
*
* @return Void
* @return void
*/
public function setUnit($unit)
{
/web/acc/phpsysinfo/includes/to/device/class.UPSDevice.inc.php
28,7 → 28,7
/**
* name of the ups
*
* @var String
* @var string
*/
private $_name = "";
 
35,7 → 35,7
/**
* model of the ups
*
* @var String
* @var string
*/
private $_model = "";
 
42,7 → 42,7
/**
* mode of the ups
*
* @var String
* @var string
*/
private $_mode = "";
 
49,7 → 49,7
/**
* last start time
*
* @var String
* @var string
*/
private $_startTime = "";
 
56,7 → 56,7
/**
* status of the ups
*
* @var String
* @var string
*/
private $_status = "";
 
63,7 → 63,7
/**
* temperature of the ups
*
* @var Integer
* @var int
*/
private $_temperatur = null;
 
70,7 → 70,7
/**
* outages count
*
* @var Integer
* @var int
*/
private $_outages = null;
 
77,7 → 77,7
/**
* date of last outtage
*
* @var String
* @var string
*/
private $_lastOutage = null;
 
84,7 → 84,7
/**
* date of last outage finish
*
* @var String
* @var string
*/
private $_lastOutageFinish = null;
 
91,7 → 91,7
/**
* line volt
*
* @var Integer
* @var int
*/
private $_lineVoltage = null;
 
98,7 → 98,7
/**
* line freq
*
* @var Integer
* @var int
*/
private $_lineFrequency = null;
 
105,7 → 105,7
/**
* current load of the ups in percent
*
* @var Integer
* @var int
*/
private $_load = null;
 
112,7 → 112,7
/**
* battery installation date
*
* @var String
* @var string
*/
private $_batteryDate = null;
 
119,7 → 119,7
/**
* current battery volt
*
* @var Integer
* @var int
*/
private $_batteryVoltage = null;
 
126,7 → 126,7
/**
* current charge in percent of the battery
*
* @var Integer
* @var int
*/
private $_batterCharge = null;
 
133,11 → 133,18
/**
* time left
*
* @var String
* @var string
*/
private $_timeLeft = null;
 
/**
* beeper enabled or disabled
*
* @var string
*/
private $_beeperStatus = null;
 
/**
* Returns $_batterCharge.
*
* @see UPSDevice::$_batterCharge
152,7 → 159,7
/**
* Sets $_batterCharge.
*
* @param Integer $batterCharge battery charge
* @param int $batterCharge battery charge
*
* @see UPSDevice::$_batterCharge
*
182,7 → 189,7
*
* @see UPSDevice::$_batteryDate
*
* @return Void
* @return void
*/
public function setBatteryDate($batteryDate)
{
194,7 → 201,7
*
* @see UPSDevice::$_batteryVoltage
*
* @return Integer
* @return int
*/
public function getBatteryVoltage()
{
204,11 → 211,11
/**
* Sets $_batteryVoltage.
*
* @param Integer $batteryVoltage battery volt
* @param int $batteryVoltage battery volt
*
* @see UPSDevice::$_batteryVoltage
*
* @return Void
* @return void
*/
public function setBatteryVoltage($batteryVoltage)
{
234,7 → 241,7
*
* @see UPSDevice::$lastOutage
*
* @return Void
* @return void
*/
public function setLastOutage($lastOutage)
{
260,7 → 267,7
*
* @see UPSDevice::$_lastOutageFinish
*
* @return Void
* @return void
*/
public function setLastOutageFinish($lastOutageFinish)
{
272,7 → 279,7
*
* @see UPSDevice::$_lineVoltage
*
* @return Integer
* @return int
*/
public function getLineVoltage()
{
282,11 → 289,11
/**
* Sets $_lineVoltage.
*
* @param Integer $lineVoltage line voltage
* @param int $lineVoltage line voltage
*
* @see UPSDevice::$_lineVoltage
*
* @return Void
* @return void
*/
public function setLineVoltage($lineVoltage)
{
298,7 → 305,7
*
* @see UPSDevice::$_lineFrequency
*
* @return Integer
* @return int
*/
public function getLineFrequency()
{
308,11 → 315,11
/**
* Sets $_lineFrequency.
*
* @param Integer $lineFrequency line frequency
* @param int $lineFrequency line frequency
*
* @see UPSDevice::$_lineFrequency
*
* @return Void
* @return void
*/
public function setLineFrequency($lineFrequency)
{
324,7 → 331,7
*
* @see UPSDevice::$_load
*
* @return Integer
* @return int
*/
public function getLoad()
{
334,11 → 341,11
/**
* Sets $_load.
*
* @param Integer $load current load
* @param int $load current load
*
* @see UPSDevice::$_load
*
* @return Void
* @return void
*/
public function setLoad($load)
{
364,7 → 371,7
*
* @see UPSDevice::$_mode
*
* @return Void
* @return void
*/
public function setMode($mode)
{
390,7 → 397,7
*
* @see UPSDevice::$_model
*
* @return Void
* @return void
*/
public function setModel($model)
{
416,7 → 423,7
*
* @see UPSDevice::$_name
*
* @return Void
* @return void
*/
public function setName($name)
{
428,7 → 435,7
*
* @see UPSDevice::$_outages
*
* @return Integer
* @return int
*/
public function getOutages()
{
438,11 → 445,11
/**
* Sets $_outages.
*
* @param Integer $outages outages count
* @param int $outages outages count
*
* @see UPSDevice::$_outages
*
* @return Void
* @return void
*/
public function setOutages($outages)
{
468,7 → 475,7
*
* @see UPSDevice::$_startTime
*
* @return Void
* @return void
*/
public function setStartTime($startTime)
{
494,7 → 501,7
*
* @see UPSDevice::$_status
*
* @return Void
* @return void
*/
public function setStatus($status)
{
506,7 → 513,7
*
* @see UPSDevice::$_temperatur
*
* @return Integer
* @return int
*/
public function getTemperatur()
{
516,11 → 523,11
/**
* Sets $_temperatur.
*
* @param Integer $temperatur temperature
* @param int $temperatur temperature
*
* @see UPSDevice::$_temperatur
*
* @return Void
* @return void
*/
public function setTemperatur($temperatur)
{
546,10 → 553,36
*
* @see UPSDevice::$_timeLeft
*
* @return Void
* @return void
*/
public function setTimeLeft($timeLeft)
{
$this->_timeLeft = $timeLeft;
}
 
/**
* Returns $_beeperStatus.
*
* @see UPSDevice::$_beeperStatus
*
* @return String
*/
public function getBeeperStatus()
{
return $this->_beeperStatus;
}
 
/**
* Sets $_beeperStatus.
*
* @param String $beeperStatus beeper status
*
* @see UPSDevice::$_beeperStatus
*
* @return void
*/
public function setBeeperStatus($beeperStatus)
{
$this->_beeperStatus = $beeperStatus;
}
}