Tag
Table of Contents
Constants
-
GROUP_TAGS_CACHE
= 'group'
-
TASK_TAGS_CACHE
= 'task'
-
USER_TAGS_CACHE
= 'user'
Methods
-
__construct()
: mixed
-
addTag()
: void
-
addTagToGroup()
: void
-
addTagToUser()
: void
-
addToGroupTask()
: void
-
addToTask()
: void
-
delete()
: void
-
deleteGroupTags()
: void
-
edit()
: void
-
getGroupId()
: int
-
getIdByGroup()
: int
-
getIdByTask()
: int
-
getIdByUser()
: int
-
getTaskTags()
: array<string|int, mixed>
-
isExists()
: bool
-
isExistsByGroup()
: bool
-
isExistsByTask()
: bool
-
isExistsByUser()
: bool
-
linkTag()
: void
-
linkTags()
: void
-
set()
: void
-
unlinkTag()
: void
-
unlinkTags()
: void
public
mixed
GROUP_TAGS_CACHE
= 'group'
public
mixed
TASK_TAGS_CACHE
= 'task'
public
mixed
USER_TAGS_CACHE
= 'user'
__construct()
public
__construct([int $userId = 0 ]) : mixed
Parameters
-
$userId
: int
= 0
-
addTag()
public
addTag(string $tagName, int $groupId) : void
Parameters
-
$tagName
: string
-
-
$groupId
: int
-
-
throws
-
Exception
addTagToGroup()
public
addTagToGroup(string $tagName, int $groupId) : void
Parameters
-
$tagName
: string
-
-
$groupId
: int
-
-
throws
-
Exception
addTagToUser()
public
addTagToUser(string $tagName) : void
Parameters
-
$tagName
: string
-
-
throws
-
Exception
addToGroupTask()
public
addToGroupTask(int $taskId, int $groupId, array<string|int, mixed> $tagsForAdd) : void
Parameters
-
$taskId
: int
-
-
$groupId
: int
-
-
$tagsForAdd
: array<string|int, mixed>
-
-
throws
-
ArgumentException
-
throws
-
SqlQueryException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
addToTask()
public
addToTask(int $taskId, array<string|int, mixed> $tagsForAdd[, int $userId = 0 ]) : void
Parameters
-
$taskId
: int
-
-
$tagsForAdd
: array<string|int, mixed>
-
-
$userId
: int
= 0
-
-
throws
-
ArgumentException
-
throws
-
SqlQueryException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
delete()
public
delete(array<string|int, mixed> $tags) : void
Parameters
-
$tags
: array<string|int, mixed>
-
public
deleteGroupTags(int $groupId) : void
Parameters
-
$groupId
: int
-
-
throws
-
SqlQueryException
-
throws
-
SystemException
-
throws
-
ArgumentException
edit()
public
edit(int $tagId, string $newName) : void
Parameters
-
$tagId
: int
-
-
$newName
: string
-
-
throws
-
Exception
getGroupId()
public
getGroupId(int $taskId) : int
Parameters
-
$taskId
: int
-
getIdByGroup()
public
getIdByGroup(int $groupId, mixed $tag) : int
Parameters
-
$groupId
: int
-
-
$tag
: mixed
-
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
-
throws
-
ArgumentException
getIdByTask()
public
getIdByTask(int $taskId, mixed $tag) : int
Parameters
-
$taskId
: int
-
-
$tag
: mixed
-
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
-
throws
-
ArgumentException
getIdByUser()
public
getIdByUser(array<string|int, mixed> $tag[, int $userId = 0 ]) : int
Parameters
-
$tag
: array<string|int, mixed>
-
-
$userId
: int
= 0
-
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
-
throws
-
ArgumentException
public
getTaskTags(int $taskId) : array<string|int, mixed>
Parameters
-
$taskId
: int
-
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
-
throws
-
ArgumentException
Return values
array<string|int, mixed>
isExists()
public
isExists(string $name, int $groupId, int $taskId) : bool
Parameters
-
$name
: string
-
-
$groupId
: int
-
-
$taskId
: int
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
isExistsByGroup()
public
isExistsByGroup(int $groupId, string $name) : bool
Parameters
-
$groupId
: int
-
-
$name
: string
-
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
-
throws
-
ArgumentException
isExistsByTask()
public
isExistsByTask(int $taskId, string $name) : bool
Parameters
-
$taskId
: int
-
-
$name
: string
-
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
-
throws
-
ArgumentException
isExistsByUser()
public
isExistsByUser(string $name) : bool
Parameters
-
$name
: string
-
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
-
throws
-
ArgumentException
linkTag()
public
linkTag(int $taskId, int $tagId) : void
Parameters
-
$taskId
: int
-
-
$tagId
: int
-
-
throws
-
Exception
public
linkTags(int $taskId, array<string|int, mixed> $tagIds) : void
Parameters
-
$taskId
: int
-
-
$tagIds
: array<string|int, mixed>
-
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
-
throws
-
ArgumentException
set()
public
set(int $taskId, array<string|int, mixed> $tags[, int $oldGroupId = 0 ][, int $newGroupId = 0 ][, bool $onlyAdd = false ]) : void
Parameters
-
$taskId
: int
-
-
$tags
: array<string|int, mixed>
-
-
$oldGroupId
: int
= 0
-
-
$newGroupId
: int
= 0
-
-
$onlyAdd
: bool
= false
-
-
throws
-
SystemException
-
throws
-
SqlQueryException
-
throws
-
ObjectPropertyException
-
throws
-
ArgumentException
unlinkTag()
public
unlinkTag(int $taskId, int $tagId) : void
Parameters
-
$taskId
: int
-
-
$tagId
: int
-
-
throws
-
SqlQueryException
-
throws
-
SystemException
-
throws
-
ArgumentException
public
unlinkTags(int $taskId) : void
Parameters
-
$taskId
: int
-
-
throws
-
SqlQueryException
-
throws
-
SystemException
-
throws
-
ArgumentException