/**
  *
  * Ensures only one instance is loaded or can be loaded.
  *
  * @static
  * @return class instance
  */
 public static function instance($upgrade_url, $plugin_name, $product_id, $api_key, $activation_email, $renew_license_url, $instance, $domain, $software_version, $plugin_or_theme, $extra = '')
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self($upgrade_url, $plugin_name, $product_id, $api_key, $activation_email, $renew_license_url, $instance, $domain, $software_version, $plugin_or_theme, $extra);
     }
     return self::$_instance;
 }
Ejemplo n.º 2
0
 /**
  * Update Check Class.
  *
  * @return SwiftyApiManagerUpdateApiCheck
  */
 public function our_update_check($upgrade_url, $plugin_name, $product_id, $api_key, $activation_email, $renew_license_url, $instance, $domain, $software_version, $plugin_or_theme, $extra = '')
 {
     return SwiftyApiManagerUpdateApiCheck::instance($upgrade_url, $plugin_name, $product_id, $api_key, $activation_email, $renew_license_url, $instance, $domain, $software_version, $plugin_or_theme, $extra);
 }