TagMapper

class OC\Tagging\TagMapper
Mapper for Tag entity
Source:lib/private/Tagging/TagMapper.php#36
Parent:OCP\AppFramework\Db\Mapper

Methods

public OC\Tagging\TagMapper::__construct($db)
Constructor.
Source:

lib/private/Tagging/TagMapper.php#43

Parameters:
public OC\Tagging\TagMapper::loadTags($owners, $type)
Load tags from the database.
Source:

lib/private/Tagging/TagMapper.php#54

Parameters:
  • $owners (array | string) The user(s) whose tags we are going to load.
  • $type (string) The type of item for which we are loading tags.
Returns:

array An array of Tag objects.

public OC\Tagging\TagMapper::tagExists($tag)
Check if a given Tag object already exists in the database.
Source:

lib/private/Tagging/TagMapper.php#70

Parameters:
Returns:

bool