\OCPITagManager

Factory class creating instances of \OCP\ITags

A tag can be e.g. 'Family', 'Work', 'Chore', 'Special Occation' or anything else that is either parsed from a vobject or that the user chooses to add. Tag names are not case-sensitive, but will be saved with the case they are entered in. If a user already has a tag 'family' for a type, and tries to add a tag named 'Family' it will be silently ignored.

Summary

Methods
Constants
load()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

load()

load(string  $type, array  $defaultTags = array(), boolean  $includeShared = false, string  $userId = null) : \OCP\ITags

Create a new \OCP\ITags instance and load tags from db for the current user.

Parameters

string $type

The type identifier e.g. 'contact' or 'event'.

array $defaultTags

An array of default tags to be used if none are stored.

boolean $includeShared

Whether to include tags for items shared with this user by others.

string $userId

user for which to retrieve the tags, defaults to the currently logged in user

Returns

\OCP\ITags