PHP Class Piwik\Plugins\Marketplace\API

Inheritance: extends Piwik\Plugin\API
Show file Open project: piwik/piwik

Public Methods

Method Description
__construct ( Service $service, Client $client, InvalidLicenses $expired )
deleteLicenseKey ( ) : boolean Deletes an existing license key if one is set.
saveLicenseKey ( string $licenseKey ) : boolean Saves the given license key in case the key is actually valid (exists on the Piwik Marketplace and is not yet expired).

Private Methods

Method Description
setLicenseKey ( $licenseKey )

Method Details

__construct() public method

public __construct ( Service $service, Client $client, InvalidLicenses $expired )
$service Piwik\Plugins\Marketplace\Api\Service
$client Piwik\Plugins\Marketplace\Api\Client
$expired Piwik\Plugins\Marketplace\Plugins\InvalidLicenses

deleteLicenseKey() public method

Deletes an existing license key if one is set.
public deleteLicenseKey ( ) : boolean
return boolean

saveLicenseKey() public method

Saves the given license key in case the key is actually valid (exists on the Piwik Marketplace and is not yet expired).
public saveLicenseKey ( string $licenseKey ) : boolean
$licenseKey string
return boolean