IRegistry

interface OCP\Support\Subscription\IRegistry
Implemented by:OC\Support\Subscription\Registry
Source:lib/public/Support/Subscription/IRegistry.php#36

Methods

public OCP\Support\Subscription\IRegistry::register($subscription)
Register a subscription instance. In case it is called multiple times an
exception is thrown
Source:

lib/public/Support/Subscription/IRegistry.php#48

Parameters:
Throws:

\OCP\Support\Subscription\Exception\AlreadyRegisteredException

Since:

17.0.0

Deprecated:

20.0.0 use registerService

public OCP\Support\Subscription\IRegistry::registerService($subscriptionService)
Register a subscription handler. The service has to implement the ISubscription interface.
In case this is called multiple times an exception is thrown.
Source:

lib/public/Support/Subscription/IRegistry.php#59

Parameters:
  • $subscriptionService (string)
Throws:

\OCP\Support\Subscription\Exception\AlreadyRegisteredException

Since:

20.0.0

public OCP\Support\Subscription\IRegistry::delegateGetSupportedApps()
Fetches the list of app IDs that are supported by the subscription
Source:lib/public/Support/Subscription/IRegistry.php#66
Since:17.0.0
public OCP\Support\Subscription\IRegistry::delegateHasValidSubscription()
Indicates if a valid subscription is available
Source:lib/public/Support/Subscription/IRegistry.php#73
Since:17.0.0
public OCP\Support\Subscription\IRegistry::delegateHasExtendedSupport()
Indicates if the subscription has extended support
Source:lib/public/Support/Subscription/IRegistry.php#80
Since:17.0.0
public OCP\Support\Subscription\IRegistry::delegateIsHardUserLimitReached()
Indicates if a hard user limit is reached and no new users should be created
Source:lib/public/Support/Subscription/IRegistry.php#87
Since:21.0.0