forked from TLive/Open-Web-Analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
owa.php
45 lines (33 loc) · 753 Bytes
/
owa.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
//
// Open Web Analytics - An Open Source Web Analytics Framework
//
// Licensed under GPL v2.0 http://www.gnu.org/copyleft/gpl.html
//
require_once('owa_env.php');
require_once('owa_caller.php');
/**
* OWA Core
*
* Main core class wrapper.
*
* @author Peter Adams <[email protected]>
*/
class owa extends owa_caller {
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 ) ) {
$owa = new owa($config);
}
return $owa;
}
}
?>