Teknik is a suite of services with attractive and functional interfaces. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

64 lines
1.4 KiB

<?php
/**
* Basic UPS Class
*
* PHP version 5
*
* @category PHP
* @package PSI_UPS
* @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.ups.inc.php 661 2012-08-27 11:26:39Z namiltd $
* @link http://phpsysinfo.sourceforge.net
*/
/**
* Basic UPS functions for all UPS classes
*
* @category PHP
* @package PSI_UPS
* @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
*/
abstract class UPS implements PSI_Interface_UPS
{
/**
* object for error handling
*
* @var Error
*/
protected $error;
/**
* main object for ups information
*
* @var UPSInfo
*/
protected $upsinfo;
/**
* build the global Error object
*/
public function __construct()
{
$this->error = Error::singleton();
$this->upsinfo = new UPSInfo();
}
/**
* build and return the ups information
*
* @see PSI_Interface_UPS::getUPSInfo()
*
* @return UPSInfo
*/
final public function getUPSInfo()
{
$this->build();
return $this->upsinfo;
}
}