Tag

class OC\Tagging\Tag
Class to represent a tag.
Source:lib/private/Tagging/Tag.php#40
Parent:OCP\AppFramework\Db\Entity

Properties

protected static property OC\Tagging\Tag::$owner
Source:lib/private/Tagging/Tag.php#41
protected static property OC\Tagging\Tag::$type
Source:lib/private/Tagging/Tag.php#42
protected static property OC\Tagging\Tag::$name
Source:lib/private/Tagging/Tag.php#43

Methods

public OC\Tagging\Tag::__construct($owner=null, $type=null, $name=null)
Constructor.
Source:

lib/private/Tagging/Tag.php#52

Parameters:
  • $owner (string) The tag’s owner
  • $type (string) The type of item this tag is used for
  • $name (string) The tag’s name
public OC\Tagging\Tag::columnToProperty($columnName)
Transform a database columnname to a property
Source:

lib/private/Tagging/Tag.php#66

Parameters:
  • $columnName (string) the name of the column
Returns:

string the property name

public OC\Tagging\Tag::propertyToColumn($property)
Transform a property to a database column name
Source:

lib/private/Tagging/Tag.php#82

Parameters:
  • $property (string) the name of the property
Returns:

string the column name