Tuskfish API
  • Package
  • Class

Packages

  • content
  • core
  • database
  • installation
  • security
  • user
  • utilities

Classes

  • TfishArticle
  • TfishArticleHandler
  • TfishAudio
  • TfishAudioHandler
  • TfishBlock
  • TfishBlockHandler
  • TfishCollection
  • TfishCollectionHandler
  • TfishContentHandler
  • TfishContentObject
  • TfishDownload
  • TfishDownloadHandler
  • TfishImage
  • TfishImageHandler
  • TfishMetadata
  • TfishRss
  • TfishStatic
  • TfishStaticHandler
  • TfishTag
  • TfishTagHandler
  • TfishTaglink
  • TfishTaglinkHandler
  • TfishTemplate
  • TfishVideo
  • TfishVideoHandler

Class TfishTaglinkHandler

Handler class for taglink objects.

TfishContentHandler
Extended by TfishTaglinkHandler
Package: content
Copyright: Simon Wilkinson 2013-2017 (https://tuskfish.biz)
License: GNU General Public License (GPL) V2
Author: Simon Wilkinson simon@isengard.biz
Version: Release: 1.0
Since: 1.0
Located at trust_path/libraries/tuskfish/class/TfishTaglinkHandler.php

Methods summary

public static boolean
# deleteTaglinks( TfishContentObject $obj )

Delete taglinks associated with a particular content object.

Delete taglinks associated with a particular content object.

Parameters

$obj
A TfishContentObject subclass object.

Returns

boolean
True for success, false on failure.
public static boolean
# insertTaglinks( integer $content_id, string $type, array $tags )

Insert taglinks to the taglink table.

Insert taglinks to the taglink table.

Taglinks represent relationships between tags and content objects.

Parameters

$content_id
ID of content object.
$type
Type of content object as whitelisted in TfishTaglinkHandler::getType().
$tags
IDs of tags as integers.

Returns

boolean
True on success false on failure.
public static boolean
# updateTaglinks( integer $id, string $type, array $tags = null )

Updates taglinks for a particular content object.

Updates taglinks for a particular content object.

Old taglinks are deleted, newly designated set of taglinks are inserted. Objects that have had their type converted to TfishTag lose all taglinks (tags are not allowed to reference tags).

Parameters

$id
ID of target content object.
$type
Type of content object as whitelisted in TfishTaglinkHandler::getType().
$tags
IDs of tags as integers.

Returns

boolean
True on success false on failure.

Methods inherited from TfishContentHandler

delete(), deleteParentalReferences(), getActiveTagList(), getCount(), getLanguages(), getList(), getObject(), getObjects(), getOnlineSelectBox(), getRights(), getTagList(), getTags(), getTypeIndex(), getTypeSelectBox(), getTypes(), insert(), isSanctionedType(), makeTagLinks(), searchContent(), toObject(), toggleOnlineStatus(), update(), updateCounter()

Tuskfish API API documentation generated by ApiGen