Tuskfish API
  • Package
  • Class

Packages

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

Classes

  • TfishArticle
  • TfishArticleHandler
  • TfishAudio
  • TfishAudioHandler
  • TfishBlock
  • TfishBlockHandler
  • TfishCollection
  • TfishCollectionHandler
  • TfishContentHandler
  • TfishContentObject
  • TfishDownload
  • TfishDownloadHandler
  • TfishImage
  • TfishImageHandler
  • TfishMetadata
  • TfishRss
  • TfishStatic
  • TfishStaticHandler
  • TfishTag
  • TfishTagHandler
  • TfishTaglink
  • TfishTaglinkHandler
  • TfishTemplate
  • TfishVideo
  • TfishVideoHandler

Class TfishArticleHandler

Handler class for article content objects.

TfishContentHandler
Extended by TfishArticleHandler
Package: content
Copyright: Simon Wilkinson 2013-2017 (https://tuskfish.biz)
License: GNU General Public License (GPL) V2
Author: Simon Wilkinson simon@isengard.biz
Version: Release: 1.0
Since: 1.0
Located at trust_path/libraries/tuskfish/class/TfishArticleHandler.php

Methods summary

public static array
# getObjects( TfishCriteria $criteria = null )

Get TfishArticle objects, optionally matching conditions specified in a TfishCriteria object.

Get TfishArticle objects, optionally matching conditions specified in a TfishCriteria object.

Note that the article type is automatically set, so when calling TfishArticleHandler::getObjects($criteria) it is unnecessary to set the object type. However, if you want to use TfishContentHandler::getObjects($criteria) then you do need to specify the object type, otherwise you will get all types of content returned. it is acceptable to use either handler, although probably good practice to use the object- specific one when you know you want a specific kind of object.

Parameters

$criteria
TfishCriteria object used to build conditional database query.

Returns

array
$objects TfishArticle objects.

Overrides

TfishContentHandler::getObjects
public static array
# getCount( TfishCriteria $criteria = null )

Get TfishArticle objects, optionally matching conditions specified in a TfishCriteria object.

Get TfishArticle objects, optionally matching conditions specified in a TfishCriteria object.

Note that the object type is automatically set, so it is unnecessary to set it when calling TfishArticleHandler::getObjects($criteria). However, if you want to use the generic handler TfishContentHandler::getObjects($criteria) then you do need to specify the object type, otherwise you will get all types of content returned. It is acceptable to use either handler, although good practice to use the type-specific one when you know you want a specific kind of object.

Parameters

$criteria
TfishCriteria object used to build conditional database query.

Returns

array
$objects TfishArticle objects.

Overrides

TfishContentHandler::getCount

Methods inherited from TfishContentHandler

delete(), deleteParentalReferences(), getActiveTagList(), getLanguages(), getList(), getObject(), getOnlineSelectBox(), getRights(), getTagList(), getTags(), getTypeIndex(), getTypeSelectBox(), getTypes(), insert(), isSanctionedType(), makeTagLinks(), searchContent(), toObject(), toggleOnlineStatus(), update(), updateCounter()

Tuskfish API API documentation generated by ApiGen