Example #1
0
 public static function instance()
 {
     if (is_null(AWPCP_Installer::$instance)) {
         AWPCP_Installer::$instance = new AWPCP_Installer();
     }
     return AWPCP_Installer::$instance;
 }
Example #2
0
 public function __construct()
 {
     global $awpcp_db_version;
     $this->version = $awpcp_db_version;
     // stored options are loaded when the settings API is instatiated
     $this->settings = AWPCP_Settings_API::instance();
     $this->js = AWPCP_JavaScript::instance();
     $this->installer = AWPCP_Installer::instance();
 }