Exemplo n.º 1
0
 public static function instance()
 {
     if (is_null(self::$instance)) {
         self::$instance = new AWPCP_JavaScript();
     }
     return self::$instance;
 }
Exemplo n.º 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();
 }