* 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:
2025-05-14 16:14:01 +01:00
parent 80b1da5fa5
commit c8ce77259d
952 changed files with 51341 additions and 28699 deletions

View File

@@ -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.NetDevice.inc.php 547 2012-03-22 09:44:38Z 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,51 +28,72 @@ class NetDevice
/**
* name of the device
*
* @var String
* @var string
*/
private $_name = "";
/**
* transmitted bytes
*
* @var Integer
* @var int
*/
private $_txBytes = 0;
/**
* received bytes
*
* @var Integer
* @var int
*/
private $_rxBytes = 0;
/**
* counted error packages
*
* @var Integer
* @var int
*/
private $_errors = 0;
/**
* counted droped packages
*
* @var Integer
* @var int
*/
private $_drops = 0;
/**
* string with info
*
* @var String
* @var string
*/
private $_info = null;
/**
* string with bridge
*
* @var string
*/
private $_bridge = null;
/**
* transmitted bytes rate
*
* @var int
*/
private $_txRate = null;
/**
* received bytes rate
*
* @var int
*/
private $_rxRate = null;
/**
* Returns $_drops.
*
* @see NetDevice::$_drops
*
* @return Integer
* @return int
*/
public function getDrops()
{
@@ -82,11 +103,11 @@ class NetDevice
/**
* 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 +119,7 @@ class NetDevice
*
* @see NetDevice::$_errors
*
* @return Integer
* @return int
*/
public function getErrors()
{
@@ -108,11 +129,11 @@ class NetDevice
/**
* 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 +159,7 @@ class NetDevice
*
* @see NetDevice::$_name
*
* @return Void
* @return void
*/
public function setName($name)
{
@@ -150,7 +171,7 @@ class NetDevice
*
* @see NetDevice::$_rxBytes
*
* @return Integer
* @return int
*/
public function getRxBytes()
{
@@ -160,11 +181,11 @@ class NetDevice
/**
* 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 +197,7 @@ class NetDevice
*
* @see NetDevice::$_txBytes
*
* @return Integer
* @return int
*/
public function getTxBytes()
{
@@ -186,11 +207,11 @@ class NetDevice
/**
* Sets $_txBytes.
*
* @param Integer $txBytes transmitted bytes
* @param int $txBytes transmitted bytes
*
* @see NetDevice::$_txBytes
*
* @return Void
* @return void
*/
public function setTxBytes($txBytes)
{
@@ -216,10 +237,88 @@ class NetDevice
*
* @see NetDevice::$_info
*
* @return Void
* @return void
*/
public function setInfo($info)
{
$this->_info = $info;
}
/**
* Returns $_bridge.
*
* @see NetDevice::$_bridge
*
* @return String
*/
public function getBridge()
{
return $this->_bridge;
}
/**
* Sets $_bridge.
*
* @param String $bridge bridge string
*
* @see NetDevice::$_bridge
*
* @return void
*/
public function setBridge($bridge)
{
$this->_bridge = $bridge;
}
/**
* Returns $_rxRate.
*
* @see NetDevice::$_rxRate
*
* @return int
*/
public function getRxRate()
{
return $this->_rxRate;
}
/**
* Sets $_rxRate.
*
* @param int $rxRate received bytes rate
*
* @see NetDevice::$_rxRate
*
* @return void
*/
public function setRxRate($rxRate)
{
$this->_rxRate = $rxRate;
}
/**
* Returns $_txRate.
*
* @see NetDevice::$_txRate
*
* @return int
*/
public function getTxRate()
{
return $this->_txRate;
}
/**
* Sets $_txRate.
*
* @param int $txRate transmitted bytes rate
*
* @see NetDevice::$_txRate
*
* @return void
*/
public function setTxRate($txRate)
{
$this->_txRate = $txRate;
}
}