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 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: TfContentFactory $contentFactory Instance of the Tuskfish content 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, TfContentFactory $contentFactory, 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.
$contentFactory
Instance of the content factory class.
$template
Instance of the template class.
$preference
Instance of the site preferences class.
$cache
Instance of the cache class.
public TfContentController|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

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

Properties summary

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