Tuskfish API V1.1.2
  • Package
  • Class

Packages

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

Classes

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

Traits

  • TfContentTypes

Class TfContentControllerFactory

Handles instantiation of controllers for content objects.

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.0
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: TfContentHandlerFactory $contentHandlerFactory Instance of the Tuskfish content handler factory class.
Var: TfTemplate $template Instance of the Tuskfish template object class.
Var: TfPreference $preference Instance of the Tuskfish site preferences class.
Var: TfCache $cache Instance of the Tuskfish site cache class.
Located at trust_path/modules/content/class/TfContentControllerFactory.php

Methods summary

public
# __construct( TfValidator $validator, TfDatabase $db, TfCriteriaFactory $criteriaFactory, TfContentHandlerFactory $contentHandlerFactory, TfTemplate $template, TfPreference $preference, TfCache $cache )

Constructor.

Constructor.

Parameters

$validator
Instance of the validator class.
$db
Instance of the database class.
$criteriaFactory
Instance of the criteria factory class.
$contentHandlerFactory
Instance of the content handler class.
$template
Instance of the template class.
$preference
Instance of the site preferences class.
$cache
Instance of the cache class.
public TfContentObjectController|boolean
# getController( string $type )

Instantiates an admin controller for content objects (TfContentObject).

Instantiates an admin controller for content objects (TfContentObject).

Parameters

$type
Type of controller. At present the only option is 'admin'.

Returns

TfContentObjectController|boolean
Content object controller on success, false on failure.

Properties summary

protected $validator
#
protected $db
#
protected $criteriaFactory
#
protected $contentHandlerFactory
#
protected $template
#
protected $preference
#
protected $cache
#
Tuskfish API V1.1.2 API documentation generated by ApiGen