Class TfTagHandler
Manipulates tag content objects (TfTag).
- TfContentHandler uses TfContentTypes
-
TfTagHandler
Copyright: Simon Wilkinson 2013+ (https://tuskfish.biz)
License: GNU General Public License (GPL) V2
Author: Simon Wilkinson simon@isengard.biz
Version: Release: 1.0
Since: 1.0
Uses:
TfContentTypes Whitelist of sanctioned TfishContentObject subclasses.Var: TfValidator $validator Instance of the Tuskfish data validator class.
Var: TfDatabase $db Instance of the Tuskfish database class.
Var: TfCriteriaFactory $criteriaFactory Instance of the Tuskfish criteria factory class.
Var: TfFileHandler $fileHandler Instance of the Tuskfish file handler class.
Var: TfTaglinkHandler $taglinkHandler Instance of the Tuskfish taglink handler class.
Located at trust_path/modules/content/class/TfTagHandler.php
Methods summary
public
|
#
__construct(
Constructor. |
public
string
|
#
getArbitraryTagSelectBox( integer $selected = null, array $tagList = array(), string $keyName = null, string $zeroOption = TFISH_SELECT_TAGS )
Build a select box from an arbitrary array of tags. |
public
integer
|
#
getCount(
Count TfTag objects, optionally matching conditions specified with a TfCriteria object. |
public
array
|
#
getObjects(
Get TfTag objects, optionally matching conditions specified with a TfCriteria object. |
public
boolean|string
|
#
getTagSelectBox( integer $selected = null, string $type = '', string $zeroOption = TFISH_SELECT_TAGS, boolean $onlineOnly = true )
Generates a tag select box control. |
Methods inherited from TfContentHandler
convertRowToObject(),
delete(),
deleteParentalReferences(),
getActiveTagList(),
getListOfMimetypes(),
getListOfTitles(),
getObject(),
getOnlineSelectBox(),
getTagList(),
getTags(),
getTypeIndex(),
getTypeSelectBox(),
insert(),
isSanctionedType(),
makeTagLinks(),
streamDownloadToBrowser(),
toggleOnlineStatus(),
update(),
updateCounter()
Methods used from TfContentTypes
Properties summary
Properties inherited from TfContentHandler
$criteriaFactory,
$db,
$fileHandler,
$taglinkHandler,
$validator