* Mon May 12 2025 Brian Read <brianr@koozali.org> 11.0.0-1.sme
- Adding SM2 panel [SME: 13004] - Upgrade to phpsysinfo 3.4.4 - Add code to delete inline styles and add css to make it look better. - version saved / built uses the static version, which means no drops downs and choices.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
* @package PSI_TO
|
||||
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
|
||||
* @copyright 2009 phpSysInfo
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
|
||||
* @version SVN: $Id: class.SensorDevice.inc.php 592 2012-07-03 10:55:51Z namiltd $
|
||||
* @link http://phpsysinfo.sourceforge.net
|
||||
*/
|
||||
@@ -19,7 +19,7 @@
|
||||
* @package PSI_TO
|
||||
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
|
||||
* @copyright 2009 phpSysInfo
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
|
||||
* @version Release: 3.0
|
||||
* @link http://phpsysinfo.sourceforge.net
|
||||
*/
|
||||
@@ -28,44 +28,51 @@ class SensorDevice
|
||||
/**
|
||||
* name of the sensor
|
||||
*
|
||||
* @var String
|
||||
* @var string
|
||||
*/
|
||||
private $_name = "";
|
||||
|
||||
/**
|
||||
* current value of the sensor
|
||||
*
|
||||
* @var Integer
|
||||
* @var int
|
||||
*/
|
||||
private $_value = 0;
|
||||
|
||||
/**
|
||||
* maximum value of the sensor
|
||||
*
|
||||
* @var Integer
|
||||
* @var int
|
||||
*/
|
||||
private $_max = null;
|
||||
|
||||
/**
|
||||
* minimum value of the sensor
|
||||
*
|
||||
* @var Integer
|
||||
* @var int
|
||||
*/
|
||||
private $_min = null;
|
||||
|
||||
/**
|
||||
* event of the sensor
|
||||
*
|
||||
* @var String
|
||||
* @var string
|
||||
*/
|
||||
private $_event = "";
|
||||
|
||||
/**
|
||||
* unit of values of the sensor
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $_unit = "";
|
||||
|
||||
/**
|
||||
* Returns $_max.
|
||||
*
|
||||
* @see Sensor::$_max
|
||||
*
|
||||
* @return Integer
|
||||
* @return int
|
||||
*/
|
||||
public function getMax()
|
||||
{
|
||||
@@ -75,11 +82,11 @@ class SensorDevice
|
||||
/**
|
||||
* Sets $_max.
|
||||
*
|
||||
* @param Integer $max maximum value
|
||||
* @param int $max maximum value
|
||||
*
|
||||
* @see Sensor::$_max
|
||||
*
|
||||
* @return Void
|
||||
* @return void
|
||||
*/
|
||||
public function setMax($max)
|
||||
{
|
||||
@@ -91,7 +98,7 @@ class SensorDevice
|
||||
*
|
||||
* @see Sensor::$_min
|
||||
*
|
||||
* @return Integer
|
||||
* @return int
|
||||
*/
|
||||
public function getMin()
|
||||
{
|
||||
@@ -101,11 +108,11 @@ class SensorDevice
|
||||
/**
|
||||
* Sets $_min.
|
||||
*
|
||||
* @param Integer $min minimum value
|
||||
* @param int $min minimum value
|
||||
*
|
||||
* @see Sensor::$_min
|
||||
*
|
||||
* @return Void
|
||||
* @return void
|
||||
*/
|
||||
public function setMin($min)
|
||||
{
|
||||
@@ -131,7 +138,7 @@ class SensorDevice
|
||||
*
|
||||
* @see Sensor::$_name
|
||||
*
|
||||
* @return Void
|
||||
* @return void
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
@@ -143,7 +150,7 @@ class SensorDevice
|
||||
*
|
||||
* @see Sensor::$_value
|
||||
*
|
||||
* @return Integer
|
||||
* @return int
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
@@ -153,11 +160,11 @@ class SensorDevice
|
||||
/**
|
||||
* Sets $_value.
|
||||
*
|
||||
* @param Integer $value current value
|
||||
* @param int $value current value
|
||||
*
|
||||
* @see Sensor::$_value
|
||||
*
|
||||
* @return Void
|
||||
* @return void
|
||||
*/
|
||||
public function setValue($value)
|
||||
{
|
||||
@@ -183,10 +190,36 @@ class SensorDevice
|
||||
*
|
||||
* @see Sensor::$_event
|
||||
*
|
||||
* @return Void
|
||||
* @return void
|
||||
*/
|
||||
public function setEvent($event)
|
||||
{
|
||||
$this->_event = $event;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns $_unit.
|
||||
*
|
||||
* @see Sensor::$_unit
|
||||
*
|
||||
* @return String
|
||||
*/
|
||||
public function getUnit()
|
||||
{
|
||||
return $this->_unit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets $_unit.
|
||||
*
|
||||
* @param String $unit sensor unit
|
||||
*
|
||||
* @see Sensor::$_unit
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setUnit($unit)
|
||||
{
|
||||
$this->_unit = $unit;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user