Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 3036 → Rev 3037

/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;
}
}