Class TfBlock
Represents a block of content, use it to create HTML blocks to insert into your site layout.
- TfContentObject uses TfLanguage, TfMagicMethods, TfMimetypes
-
TfBlock
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
Uses: trait TfLanguage to obtain a list of available translations.
Uses: trait TfMagicMethods Prevents direct setting of properties / unlisted properties.
Uses: trait TfMimetypes Access a list of known / acceptable file mimetypes.
Properties: TfValidator $validator Instance of the Tuskfish data validator class.
Properties: int $id Auto-increment, set by database.
Properties: string $type Content object type eg. TfArticle etc. [ALPHA]
Properties: string $title The name of this content.
Properties: string $description The full article or description of the content. [HTML]
Properties: array $tags Tag IDs associated with this object; not persistent (stored as taglinks in taglinks table).
Properties: int $online Toggle object on or offline.
Properties: int $submissionTime Timestamp representing submission time.
Properties: string $handler Handler for this object (not persistent).
Properties: string $template The template that should be used to display this object (not persistent).
Properties: string $module The module that handles this content type (not persistent).
Properties: string $icon The Font Awesome icon representing this content type (not persistent).
Located at trust_path/modules/content/class/TfBlock.php
Methods summary
public
|
|
public
array
|
#
getListOfZeroedProperties( )
Returns an array of base object properties that are not used by this subclass. |
protected
string
|
#
makeDataHumanReadable( string $cleanProperty )
Converts properties to human readable form in preparation for output. |
public
|
Methods inherited from TfContentObject
convertObjectToArray(),
escapeForXss(),
getCachedImage(),
getListOfAllowedAudioMimetypes(),
getListOfAllowedImageMimetypes(),
getListOfAllowedVideoMimetypes(),
getListOfRights(),
getPropertyWhitelist(),
getUrl(),
isValidMedia(),
loadPropertiesFromArray(),
setCaption(),
setCounter(),
setCreator(),
setDate(),
setDescription(),
setExpiresOn(),
setFileSize(),
setFormat(),
setHandler(),
setIcon(),
setId(),
setImage(),
setLanguage(),
setLastUpdated(),
setMedia(),
setMetaDescription(),
setMetaTitle(),
setModule(),
setOnline(),
setParent(),
setPublisher(),
setRights(),
setSeo(),
setSubmissionTime(),
setTags(),
setTeaser(),
setTemplate(),
setTitle(),
setType(),
updateLastUpdated()
Methods used from TfLanguage
Methods used from TfMagicMethods
Methods used from TfMimetypes
Properties summary
Properties inherited from TfContentObject
$caption,
$counter,
$creator,
$date,
$description,
$expiresOn,
$fileSize,
$format,
$handler,
$icon,
$id,
$image,
$language,
$lastUpdated,
$media,
$metaDescription,
$metaTitle,
$module,
$online,
$parent,
$publisher,
$rights,
$seo,
$submissionTime,
$tags,
$teaser,
$template,
$title,
$type,
$validator