--- a/busui/owa/owa_php.php +++ b/busui/owa/owa_php.php @@ -1,1 +1,61 @@ - + + * @copyright Copyright © 2006 Peter Adams + * @license http://www.gnu.org/copyleft/gpl.html GPL v2.0 + * @category owa + * @package owa + * @version $Revision$ + * @since owa 1.0.0 + */ + +class owa_php extends owa_client { + + function __construct($config = null) { + + return parent::__construct($config); + } + + /** + * OWA Singleton Method + * + * Makes a singleton instance of OWA using the config array + */ + function singleton($config = null) { + + static $owa; + + if(!empty($owa)) { + return $owa; + } else { + return new owa_php($config); + } + } +} + +?>