EasyBlogTablePostTemplate
extends EasyBlogTable
in package
Table of Contents
Properties
- $core : mixed
- $created : mixed
- $data : mixed
- $defaultThumbnails : mixed
- $doctype : mixed
- $id : mixed
- $ordering : mixed
- $params : mixed
- $published : mixed
- $screenshot : mixed
- $system : mixed
- $thumbnail : mixed
- $title : mixed
- $user_id : mixed
- $_supportNullValue : mixed
Methods
- __construct() : mixed
- bind() : mixed
- Bind the table properties
- canCreate() : mixed
- Determines if user can create post template
- canDelete() : mixed
- Determines if user can delete the templates
- canEdit() : mixed
- Determines if the user is able to edit the post template
- canLock() : mixed
- Determine if this templates can be locked
- canPublish() : mixed
- Determines if user can publish or unpublish the templates
- canView() : mixed
- Determine if user can view the selected templates
- check() : mixed
- Performs check against the properties of the table
- duplicate() : mixed
- Duplicate current template
- export() : mixed
- An exportable result of this object
- getAuthor() : mixed
- Retrieves the author of the template
- getCreated() : mixed
- Retrieves the creation date in JDate format
- getDBO() : mixed
- Retrieves the database object
- getDefaultThumbnails() : mixed
- Get default thumbnails for the template
- getDocument() : mixed
- Retrieves the document object
- getEditLink() : mixed
- Retrieves the edit link for the template
- getInstance() : mixed
- Tired of fixing conflicts with JTable::getInstance . We'll overload their method here.
- getOverridePath() : mixed
- Get override path for thumbnail
- getParams() : mixed
- Generic method to retrive raw json params from the table
- getThumbnails() : mixed
- Get thumbnails for the template
- getTitle() : mixed
- Retrieves the translated title
- hasOverrideThumbnails() : mixed
- Determine if override is exists
- isBlank() : mixed
- Determines if the post template is a blank templae
- isCore() : mixed
- Determines if the post template is a core templae
- isEbd() : mixed
- Dertermines if this templates is for ebd editor
- isLegacy() : mixed
- Determine if this templates is for legacy editor
- isLocked() : mixed
- Determine if this templates is locked
- isOwner() : mixed
- Determines if the post template is a core templae
- isSystem() : mixed
- Determines if the post template is a system templae
- load() : mixed
- Loads a blog post
- lock() : mixed
- Lock the Post Template
- move() : mixed
- removeOverrideThumbnails() : mixed
- Method to remove thumbnails override
- reset() : void
- Method to reset class properties to the defaults set in the class definition. It will ignore the primary key as well as any private class properties.
- restoreFromPost() : mixed
- A special function used to bind various data from the form post.
- store() : mixed
- On Joomla 4, if table object contains array or objects, storing is problematic unlike Joomla 3.
- storeThumbnail() : mixed
- Store the thumbnail of the template
- toArray() : mixed
- Converts a table layer into an array
- unlock() : mixed
- Unlock the Post Template
- updateOrdering() : mixed
- setLockState() : mixed
- Set the lock state for the post template
Properties
$core
public
mixed
$core
= \null
$created
public
mixed
$created
= \null
$data
public
mixed
$data
= \null
$defaultThumbnails
public
static mixed
$defaultThumbnails
= '/media/com_easyblog/images/templates/blank.png'
$doctype
public
mixed
$doctype
= \null
$id
public
mixed
$id
= \null
$ordering
public
mixed
$ordering
= \null
$params
public
mixed
$params
= \null
$published
public
mixed
$published
= \null
$screenshot
public
mixed
$screenshot
= \null
$system
public
mixed
$system
= \null
$thumbnail
public
static mixed
$thumbnail
= 'template-thumbnail.png'
$title
public
mixed
$title
= \null
$user_id
public
mixed
$user_id
= \null
$_supportNullValue
protected
mixed
$_supportNullValue
= true
Methods
__construct()
public
__construct(mixed &$db) : mixed
Parameters
- $db : mixed
bind()
Bind the table properties
public
bind(mixed $src[, mixed $ignore = [] ]) : mixed
Parameters
- $src : mixed
- $ignore : mixed = []
Tags
canCreate()
Determines if user can create post template
public
canCreate() : mixed
Tags
canDelete()
Determines if user can delete the templates
public
canDelete() : mixed
Tags
canEdit()
Determines if the user is able to edit the post template
public
canEdit() : mixed
Tags
canLock()
Determine if this templates can be locked
public
canLock() : mixed
Tags
canPublish()
Determines if user can publish or unpublish the templates
public
canPublish() : mixed
Tags
canView()
Determine if user can view the selected templates
public
canView() : mixed
Tags
check()
Performs check against the properties of the table
public
check() : mixed
Tags
duplicate()
Duplicate current template
public
duplicate() : mixed
Tags
export()
An exportable result of this object
public
export() : mixed
Tags
getAuthor()
Retrieves the author of the template
public
getAuthor() : mixed
Tags
getCreated()
Retrieves the creation date in JDate format
public
getCreated() : mixed
Tags
getDBO()
Retrieves the database object
public
getDBO() : mixed
Tags
getDefaultThumbnails()
Get default thumbnails for the template
public
getDefaultThumbnails([mixed $external = false ]) : mixed
Parameters
- $external : mixed = false
Tags
getDocument()
Retrieves the document object
public
getDocument() : mixed
Tags
getEditLink()
Retrieves the edit link for the template
public
getEditLink([mixed $xhtml = true ]) : mixed
Parameters
- $xhtml : mixed = true
Tags
getInstance()
Tired of fixing conflicts with JTable::getInstance . We'll overload their method here.
public
static getInstance(string $type[, string $prefix = 'JTable' ][, array<string|int, mixed> $config = [] ]) : mixed
Parameters
- $type : string
-
The type (name) of the JTable class to get an instance of.
- $prefix : string = 'JTable'
-
An optional prefix for the table class name.
- $config : array<string|int, mixed> = []
-
An optional array of configuration values for the JTable object.
Tags
Return values
mixed —A JTable object if found or boolean false if one could not be found.
getOverridePath()
Get override path for thumbnail
public
getOverridePath() : mixed
Tags
getParams()
Generic method to retrive raw json params from the table
public
final getParams() : mixed
Tags
getThumbnails()
Get thumbnails for the template
public
getThumbnails([mixed $external = false ]) : mixed
Parameters
- $external : mixed = false
Tags
getTitle()
Retrieves the translated title
public
getTitle() : mixed
Tags
hasOverrideThumbnails()
Determine if override is exists
public
hasOverrideThumbnails() : mixed
Tags
isBlank()
Determines if the post template is a blank templae
public
isBlank() : mixed
Tags
isCore()
Determines if the post template is a core templae
public
isCore() : mixed
Tags
isEbd()
Dertermines if this templates is for ebd editor
public
isEbd() : mixed
Tags
isLegacy()
Determine if this templates is for legacy editor
public
isLegacy() : mixed
Tags
isLocked()
Determine if this templates is locked
public
isLocked() : mixed
Tags
isOwner()
Determines if the post template is a core templae
public
isOwner() : mixed
Tags
isSystem()
Determines if the post template is a system templae
public
isSystem() : mixed
Tags
load()
Loads a blog post
public
load([mixed $id = null ][, mixed $reset = true ]) : mixed
Parameters
- $id : mixed = null
- $reset : mixed = true
Tags
lock()
Lock the Post Template
public
lock() : mixed
Tags
move()
public
move(mixed $direction[, mixed $where = '' ]) : mixed
Parameters
- $direction : mixed
- $where : mixed = ''
removeOverrideThumbnails()
Method to remove thumbnails override
public
removeOverrideThumbnails() : mixed
Tags
reset()
Method to reset class properties to the defaults set in the class definition. It will ignore the primary key as well as any private class properties.
public
reset() : void
Tags
restoreFromPost()
A special function used to bind various data from the form post.
public
restoreFromPost(mixed $data) : mixed
Parameters
- $data : mixed
Tags
store()
On Joomla 4, if table object contains array or objects, storing is problematic unlike Joomla 3.
public
store([mixed $updateNulls = false ]) : mixed
To fix Joomla 4 storing issues, we override the store behavior and normalize the fields accordingly.
Parameters
- $updateNulls : mixed = false
Tags
storeThumbnail()
Store the thumbnail of the template
public
storeThumbnail(mixed $file) : mixed
Parameters
- $file : mixed
Tags
toArray()
Converts a table layer into an array
public
toArray() : mixed
Tags
unlock()
Unlock the Post Template
public
unlock() : mixed
Tags
updateOrdering()
public
updateOrdering() : mixed
setLockState()
Set the lock state for the post template
private
setLockState(mixed $state) : mixed
Parameters
- $state : mixed