"Fossies" - the Fresh Open Source Software Archive

Member "Open-Web-Analytics-1.7.0/owa.php" (16 Sep 2020, 753 Bytes) of package /linux/www/Open-Web-Analytics-1.7.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "owa.php" see the Fossies "Dox" file reference documentation.

    1 <?php
    2 
    3 //
    4 // Open Web Analytics - An Open Source Web Analytics Framework
    5 //
    6 // Licensed under GPL v2.0 http://www.gnu.org/copyleft/gpl.html
    7 //
    8 
    9 require_once('owa_env.php');
   10 require_once('owa_caller.php');
   11 
   12 /**
   13  * OWA Core
   14  * 
   15  * Main core class wrapper.
   16  * 
   17  * @author      Peter Adams <peter@openwebanalytics.com>
   18  */
   19 
   20 class owa extends owa_caller {
   21 
   22     function __construct($config = null) {
   23 
   24         return parent::__construct($config);
   25     }
   26 
   27     /**
   28      * OWA Singleton Method
   29      *
   30      * Makes a singleton instance of OWA using the config array
   31      */
   32     function singleton($config = null) {
   33 
   34         static $owa;
   35 
   36         if( empty( $owa ) ) {
   37       
   38             $owa =  new owa($config);
   39         }
   40         
   41         return $owa;
   42     }
   43 }
   44 
   45 ?>