Yoast_Update_Manager::__construct PHP Method

__construct() public method

Constructor
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();
        }

Usage Example

 /**
  * 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();
 }
All Usage Examples Of Yoast_Update_Manager::__construct