public __construct ( Yoast_Product $product, Yoast_License_Manager $license_manager ) | ||
$product | Yoast_Product | The product. |
$license_manager | Yoast_License_Manager | The License Manager. |
public function __construct(Yoast_Product $product, $license_manager)
{
$this->product = $product;
$this->license_manager = $license_manager;
// generate transient names
$this->response_transient_key = $this->product->get_transient_prefix() . '-update-response';
$this->request_failed_transient_key = $this->product->get_transient_prefix() . '-update-request-failed';
// maybe delete transient
$this->maybe_delete_transients();
}
/** * Constructor * * @param string $api_url * @param string $item_name * @param string $license_key * @param string $slug * @param string $theme_version * @param string $author (optional) */ public function __construct(Yoast_Product $product, $license_key) { parent::__construct($product, $license_key); $this->response_key = $this->product->get_slug() . '-update-response'; // setup hooks $this->setup_hooks(); }