Class TfDataObject
Base class for data objects providing properties and methods that are standard in Tuskfish.
I thought about making this a trait, since it will apply across otherwise unrelated families of content objects, but I'm still lukewarm on using traits for anything other than static lists.
Direct known subclasses
Indirect known subclasses
TfArticle
,
TfAudio
,
TfBlock
,
TfCollection
,
TfDownload
,
TfImage
,
TfStatic
,
TfTag
,
TfVideo
Package: core
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.2
Properties: int $id Auto-increment, set by database.
Properties: int $online Toggle object on or offline.
Properties: int $submissionTime Timestamp representing submission time.
Properties: int $lastUpdated Timestamp representing last time this object was updated.
Properties: int $expiresOn Timestamp indicating the expiry date for this object.
Properties: int $counter Number of times this content was viewed or downloaded.
Properties: string $metaTitle Set a custom page title for this content.
Properties: string $metaDescription Set a custom page meta description for this content.
Properties: string $seo SEO-friendly string; it will be appended to the URL for this content.
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 vector icon that represents this object type (not persistent).
Located at trust_path/libraries/tuskfish/class/TfDataObject.php
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.2
Properties: int $id Auto-increment, set by database.
Properties: int $online Toggle object on or offline.
Properties: int $submissionTime Timestamp representing submission time.
Properties: int $lastUpdated Timestamp representing last time this object was updated.
Properties: int $expiresOn Timestamp indicating the expiry date for this object.
Properties: int $counter Number of times this content was viewed or downloaded.
Properties: string $metaTitle Set a custom page title for this content.
Properties: string $metaDescription Set a custom page meta description for this content.
Properties: string $seo SEO-friendly string; it will be appended to the URL for this content.
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 vector icon that represents this object type (not persistent).
Located at trust_path/libraries/tuskfish/class/TfDataObject.php
Methods summary
protected
string
|
#
convertBaseUrlToConstant( string $html, boolean $convertToConstant = false )
Convert URLs back to TFISH_LINK and back for insertion or update, to aid portability. |
public
string
|
|
public
|
|
public
|
|
public
integer
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
integer
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
Properties summary
protected
string
|
$id
Common properties. |
#
''
|
protected
string
|
$submissionTime
|
#
''
|
protected
string
|
$lastUpdated
|
#
''
|
protected
string
|
$expiresOn
|
#
''
|
protected
string
|
$counter
|
#
''
|
protected
string
|
$online
|
#
''
|
protected
string
|
$metaTitle
|
#
''
|
protected
string
|
$metaDescription
|
#
''
|
protected
string
|
$seo
|
#
''
|
protected
string
|
$handler
|
#
''
|
protected
string
|
$template
|
#
''
|
protected
string
|
$module
|
#
''
|
protected
string
|
$icon
|
#
''
|