initial commit of file from CVS for smeserver-phpsysinfo on Sat Sep 7 20:53:46 AEST 2024
This commit is contained in:
62
root/opt/phpsysinfo/includes/to/class.UPSInfo.inc.php
Normal file
62
root/opt/phpsysinfo/includes/to/class.UPSInfo.inc.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* MBInfo TO class
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category PHP
|
||||
* @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
|
||||
* @version SVN: $Id: class.UPSInfo.inc.php 329 2009-09-07 11:21:44Z bigmichi1 $
|
||||
* @link http://phpsysinfo.sourceforge.net
|
||||
*/
|
||||
/**
|
||||
* MBInfo TO class
|
||||
*
|
||||
* @category PHP
|
||||
* @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
|
||||
* @version Release: 3.0
|
||||
* @link http://phpsysinfo.sourceforge.net
|
||||
*/
|
||||
class UPSInfo
|
||||
{
|
||||
/**
|
||||
* array with upsdivices
|
||||
*
|
||||
* @see UPSDevice
|
||||
*
|
||||
* @var Array
|
||||
*/
|
||||
private $_upsDevices = array();
|
||||
|
||||
/**
|
||||
* Returns $_upsDevices.
|
||||
*
|
||||
* @see UPSInfo::$_upsDevices
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
public function getUpsDevices()
|
||||
{
|
||||
return $this->_upsDevices;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets $_upsDevices.
|
||||
*
|
||||
* @param UPSDevice $upsDevices upsdevice
|
||||
*
|
||||
* @see UPSInfo::$_upsDevices
|
||||
*
|
||||
* @return Void
|
||||
*/
|
||||
public function setUpsDevices($upsDevices)
|
||||
{
|
||||
array_push($this->_upsDevices, $upsDevices);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user