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: 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 casecapabilities are actually requested$callable has to return an instance of OCP\Capabilities\ICapability
Source: Parameters: - $callable (
Closure
)
- $callable (