IProviderFactory

interface OCP\Share\IProviderFactory
Interface IProviderFactory
Implemented by:OC\Share20\ProviderFactory
Source:lib/public/Share/IProviderFactory.php#34

Methods

public OCP\Share\IProviderFactory::getProvider($id)
Source:

lib/public/Share/IProviderFactory.php#42

Parameters:
  • $id (string)
Returns:

\OCP\Share\IShareProvider

Throws:

\OC\Share20\Exception\ProviderException

Since:

9.0.0

public OCP\Share\IProviderFactory::getProviderForType($shareType)
Source:

lib/public/Share/IProviderFactory.php#50

Parameters:
  • $shareType (int)
Returns:

\OCP\Share\IShareProvider

Throws:

\OC\Share20\Exception\ProviderException

Since:

9.0.0

public OCP\Share\IProviderFactory::getAllProviders()
Source:lib/public/Share/IProviderFactory.php#56
Returns:\OCP\Share\IShareProvider[]
Since:11.0.0
public OCP\Share\IProviderFactory::registerProvider($shareProvier)
Source:

lib/public/Share/IProviderFactory.php#62

Parameters:
  • $shareProvier (string)
Since:

21.0.0