IMetadataProvider

interface OCP\Calendar\IMetadataProvider
Interface IMetadataProvider
Provider for metadata of a resource or a room
Source:lib/public/Calendar/IMetadataProvider.php#33

Methods

public OCP\Calendar\IMetadataProvider::getAllAvailableMetadataKeys()
Get a list of all metadata keys available for this room
Room backends are allowed to return custom keys, beyond the ones
defined in this class. If they do, they should make sure to use their
own namespace.
Source:lib/public/Calendar/IMetadataProvider.php#45
Returns:string[] - A list of available keys
Since:17.0.0
public OCP\Calendar\IMetadataProvider::hasMetadataForKey($key)
Get whether or not a metadata key is set for this room
Source:

lib/public/Calendar/IMetadataProvider.php#54

Parameters:
  • $key (string) - The key to check for
Returns:

bool - Whether or not key is available

Since:

17.0.0

public OCP\Calendar\IMetadataProvider::getMetadataForKey($key)
Get the value for a metadata key
Source:

lib/public/Calendar/IMetadataProvider.php#63

Parameters:
  • $key (string) - The key to check for
Returns:

string | null - The value stored for the key, null if no value stored

Since:

17.0.0