Documentation

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

$defaultThumbnails

public static mixed $defaultThumbnails = '/media/com_easyblog/images/templates/blank.png'

$thumbnail

public static mixed $thumbnail = 'template-thumbnail.png'

$_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
since
1.1.0
access

public

canCreate()

Determines if user can create post template

public canCreate() : mixed
Tags
since
5.1
access

public

canDelete()

Determines if user can delete the templates

public canDelete() : mixed
Tags
since
5.1
access

public

canEdit()

Determines if the user is able to edit the post template

public canEdit() : mixed
Tags
since
6.0.0
access

public

canLock()

Determine if this templates can be locked

public canLock() : mixed
Tags
since
5.4
access

public

canPublish()

Determines if user can publish or unpublish the templates

public canPublish() : mixed
Tags
since
5.1
access

public

canView()

Determine if user can view the selected templates

public canView() : mixed
Tags
since
5.1
access

public

check()

Performs check against the properties of the table

public check() : mixed
Tags
since
4.0
access

public

@return

duplicate()

Duplicate current template

public duplicate() : mixed
Tags
since
5.1
access

public

export()

An exportable result of this object

public export() : mixed
Tags
since
4.0
access

public

@return

getAuthor()

Retrieves the author of the template

public getAuthor() : mixed
Tags
since
5.0
access

public

getCreated()

Retrieves the creation date in JDate format

public getCreated() : mixed
Tags
since
4.0
access

public

getDBO()

Retrieves the database object

public getDBO() : mixed
Tags
since
6.0.0
access

public

getDefaultThumbnails()

Get default thumbnails for the template

public getDefaultThumbnails([mixed $external = false ]) : mixed
Parameters
$external : mixed = false
Tags
since
5.1
access

public

getDocument()

Retrieves the document object

public getDocument() : mixed
Tags
since
5.0
access

public

@return

Retrieves the edit link for the template

public getEditLink([mixed $xhtml = true ]) : mixed
Parameters
$xhtml : mixed = true
Tags
since
5.1
access

public

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
link
http://docs.joomla.org/JTable/getInstance
since
11.1
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
since
5.1
access

public

getParams()

Generic method to retrive raw json params from the table

public final getParams() : mixed
Tags
since
1.1.0
access

public

getThumbnails()

Get thumbnails for the template

public getThumbnails([mixed $external = false ]) : mixed
Parameters
$external : mixed = false
Tags
since
5.1
access

public

getTitle()

Retrieves the translated title

public getTitle() : mixed
Tags
since
1.1.0
access

public

hasOverrideThumbnails()

Determine if override is exists

public hasOverrideThumbnails() : mixed
Tags
since
5.1
access

public

isBlank()

Determines if the post template is a blank templae

public isBlank() : mixed
Tags
since
5.0
access

public

@return

isCore()

Determines if the post template is a core templae

public isCore() : mixed
Tags
since
5.0
access

public

@return

isEbd()

Dertermines if this templates is for ebd editor

public isEbd() : mixed
Tags
since
5.1
access

public

isLegacy()

Determine if this templates is for legacy editor

public isLegacy() : mixed
Tags
since
5.1
access

public

isLocked()

Determine if this templates is locked

public isLocked() : mixed
Tags
since
5.4
access

public

isOwner()

Determines if the post template is a core templae

public isOwner() : mixed
Tags
since
5.0
access

public

@return

isSystem()

Determines if the post template is a system templae

public isSystem() : mixed
Tags
since
5.0
access

public

@return

load()

Loads a blog post

public load([mixed $id = null ][, mixed $reset = true ]) : mixed
Parameters
$id : mixed = null
$reset : mixed = true
Tags
since
4.0
access

public

@return

lock()

Lock the Post Template

public lock() : mixed
Tags
since
5.4
access

public

move()

public move(mixed $direction[, mixed $where = '' ]) : mixed
Parameters
$direction : mixed
$where : mixed = ''

removeOverrideThumbnails()

Method to remove thumbnails override

public removeOverrideThumbnails() : mixed
Tags
since
5.1
access

public

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
link
http://docs.joomla.org/JTable/reset
since
11.1

restoreFromPost()

A special function used to bind various data from the form post.

public restoreFromPost(mixed $data) : mixed
Parameters
$data : mixed
Tags
since
5.1
access

public

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
since
1.1.0
access

public

storeThumbnail()

Store the thumbnail of the template

public storeThumbnail(mixed $file) : mixed
Parameters
$file : mixed
Tags
since
5.1
access

public

toArray()

Converts a table layer into an array

public toArray() : mixed
Tags
since
1.1.0
access

public

unlock()

Unlock the Post Template

public unlock() : mixed
Tags
since
5.4
access

public

setLockState()

Set the lock state for the post template

private setLockState(mixed $state) : mixed
Parameters
$state : mixed
Tags
since
5.4
access

public


        
On this page

Search results