Delete the tags for this item created by a given agent
void
deleteTagsByAgent
(object Id $agentId)
Create an Item for a database row
object
forDatabaseRow
(array $row)
Constructor
object
forId
(mixed $id, string $system, [mixed $class = 'TaggedItem'])
-
string
$system: The system an Id is accessed through
-
mixed
$id: object or string $id
Redefined in descendants as:
Insert [if needed] into the item table and return the database id of this item
integer
getDatabaseId
()
Answer the database index
integer
getDatabaseIndex
()
Answer the description of this item
string
getDescription
()
Redefined in descendants as:
Answer the display name for this item
string
getDisplayName
()
Redefined in descendants as:
Answer the id that was given to this object
mixed
getId
()
Answer the string version of the id given to this object
string
getIdString
()
Answer the tags for this item not created by the current user
object TagIterator
getNonUserTags
([string $sortBy = TAG_SORT_ALFA], integer $max)
-
string
$sortBy: Return tags in alphanumeric order or by frequency of usage.
-
integer
$max: The maximum number of tags to return. The least frequently used tags will be dropped first. If $max is 0, all tags will be returned.
Answer the name of the system this item is stored in
string
getSystem
()
Answer the tags for this item
object TagIterator
getTags
([string $sortBy = TAG_SORT_ALFA], integer $max)
-
string
$sortBy: Return tags in alphanumeric order or by frequency of usage.
-
integer
$max: The maximum number of tags to return. The least frequently used tags will be dropped first. If $max is 0, all tags will be returned.
Answer the tags for this item created by a given agent
object TagIterator
getTagsByAgent
(object Id $agentId, [string $sortBy = TAG_SORT_ALFA], integer $max)
-
object Id
$agentId
-
string
$sortBy: Return tags in alphanumeric order or by frequency of usage.
-
integer
$max: The maximum number of tags to return. The least frequently used tags will be dropped first. If $max is 0, all tags will be returned.
Answer the tags for this item created by a given agent
object TagIterator
getTagsNotByAgent
(object Id $agentId, [string $sortBy = TAG_SORT_ALFA], integer $max)
-
object Id
$agentId
-
string
$sortBy: Return tags in alphanumeric order or by frequency of usage.
-
integer
$max: The maximum number of tags to return. The least frequently used tags will be dropped first. If $max is 0, all tags will be returned.
Answer the thumbnail url of this item
string
getThumbnailUrl
()
Redefined in descendants as:
Answer the url to this item
string
getUrl
()
Redefined in descendants as:
Answer the tags for this item created by the current user
object TagIterator
getUserTags
([string $sortBy = TAG_SORT_ALFA], integer $max)
-
string
$sortBy: Return tags in alphanumeric order or by frequency of usage.
-
integer
$max: The maximum number of tags to return. The least frequently used tags will be dropped first. If $max is 0, all tags will be returned.