Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 3037 → Rev 2976

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