/** * Gets the remote product data from a 3-hour transient * * @return bool|mixed */ private function get_cached_remote_data() { $data = get_site_transient($this->product->get_prefix() . 'update-response'); if ($data) { return $data; } return false; }
/** * Constructor * * @param DVK_Product $product */ public function __construct(DVK_Product $product) { // Set the license $this->product = $product; // run upgrade script $this->db_version = (int) get_option($product->get_prefix() . 'license_manager_version', 0); if ($this->db_version < self::VERSION) { $this->upgrade(); } }