CapabilitiesManager

class OC\CapabilitiesManager
Source:lib/private/CapabilitiesManager.php#37

Properties

Methods

public OC\CapabilitiesManager::__construct($logger)
Source:lib/private/CapabilitiesManager.php#45
public OC\CapabilitiesManager::getCapabilities($public=false)
Get an array of al the capabilities that are registered at this manager
Source:

lib/private/CapabilitiesManager.php#56

Parameters:
  • $public (bool) get public capabilities only
Throws:

\InvalidArgumentException

Returns:

array

public OC\CapabilitiesManager::registerCapability($callable)
In order to improve lazy loading a closure can be registered which will be called in case
capabilities are actually requested
$callable has to return an instance of OCP\Capabilities\ICapability
Source:

lib/private/CapabilitiesManager.php#88

Parameters:
  • $callable (Closure)