Tuskfish API V1.1.1
  • Package
  • Class

Packages

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

Classes

  • TfArticle
  • TfAudio
  • TfBlock
  • TfBlockHandler
  • TfCollection
  • TfCollectionHandler
  • TfContentHandler
  • TfContentHandlerFactory
  • TfContentObject
  • TfDownload
  • TfImage
  • TfMetadata
  • TfPaginationControl
  • TfRss
  • TfSearchContent
  • TfStatic
  • TfTag
  • TfTagHandler
  • TfTaglinkHandler
  • TfTemplate
  • TfVideo

Traits

  • TfContentTypes

Class TfContentHandlerFactory

Factory class that instantiates TfContentHandler objects and handles dependency injection.

Package: content
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.1
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/TfContentHandlerFactory.php

Methods summary

public
# __construct( TfValidator $validator, TfDatabase $db, TfCriteriaFactory $criteriaFactory, TfFileHandler $fileHandler )

Constructor.

Constructor.

Parameters

$validator
An instance of the Tuskfish data validator class.
$db
An instance of the database class.
$criteriaFactory
an instance of the Tuskfish criteria factory class.
$fileHandler
An instance of the Tuskfish file handler class.
public TfCollectionHandler|TfContentHandler|TfTagHandler
# getHandler( string $type )

Instantiates and returns the requested TfishContentHandler subclass.

Instantiates and returns the requested TfishContentHandler subclass.

Parameters

$type
Name of the requested handler.

Returns

TfCollectionHandler|TfContentHandler|TfTagHandler

Properties summary

protected $validator
#
protected $db
#
protected $criteriaFactory
#
protected $fileHandler
#
protected $taglinkHandler
#
Tuskfish API V1.1.1 API documentation generated by ApiGen