Tuskfish API V1.1.3
  • Package
  • Class

Packages

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

Classes

  • TfArticle
  • TfAudio
  • TfBlock
  • TfBlockHandler
  • TfCollection
  • TfCollectionHandler
  • TfContentController
  • TfContentControllerFactory
  • TfContentFactory
  • TfContentHandler
  • TfContentObject
  • TfDownload
  • TfImage
  • TfRss
  • TfSearchContent
  • TfStatic
  • TfTag
  • TfTagHandler
  • TfTaglinkHandler
  • TfVideo

Traits

  • TfContentTypes

Class TfContentFactory

Factory class that handles instantiation of content objects, handlers and controllers.

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/TfContentFactory.php

Methods summary

public
# __construct( TfValidator $validator, TfDatabase $db, TfCriteriaFactory $criteriaFactory, TfFileHandler $fileHandler, TfTaglinkHandler $taglinkHandler )
public obj
# getContentObject( string $type )

Returns a new content object or subclass.

Returns a new content object or subclass.

Parameters

$type
Type of content object.

Returns

obj
Content object subclass.
public TfCollectionHandler|TfContentHandler|TfTagHandler
# getContentHandler( 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.3 API documentation generated by ApiGen