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: Parameters: - $db (
OCP\IDBConnection
) Instance of the Db abstraction layer.
- $db (
-
public
OC\Tagging\TagMapper::
loadTags
($owners, $type)¶ - Load tags from the database.
Source: 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: Parameters: - $tag (
OC\Tagging\Tag
) The tag to look for in the database.
Returns: bool
- $tag (