Documentation

EasyBlogTableRevision extends EasyBlogTable
in package

Table of Contents

Properties

$content  : mixed
$created  : mixed
$created_by  : mixed
$id  : mixed
$modified  : mixed
$ordering  : mixed
$post_id  : mixed
$state  : mixed
$title  : mixed
$_supportNullValue  : mixed

Methods

__construct()  : mixed
bind()  : mixed
Bind the table properties
canDelete()  : mixed
Determines the current viewer can delete the revision
delete()  : mixed
delete revision
getAuthor()  : mixed
Retrieves the author of the revision
getCategories()  : mixed
Retrieves the categories of the revision
getContent()  : mixed
Returns JSON decoded data of the revision
getCreationDate()  : mixed
Retrieves the creation date of this revision
getCssState()  : mixed
Retrieves the css class state for the revision's state
getDBO()  : mixed
Retrieves the database object
getDiffContent()  : mixed
Retrieves the post content that is used for diff
getDocument()  : mixed
Retrieves the document object for this revision
getInstance()  : mixed
Tired of fixing conflicts with JTable::getInstance . We'll overload their method here.
getNextOrdering()  : mixed
Retrieves the next ordering for this post's series
getParams()  : mixed
Generic method to retrive raw json params from the table
getPost()  : mixed
Retrieve the post object for this revision
getState()  : mixed
Retrieves the current state of the revision
getTitle()  : mixed
Retrieves the title of the revision
isCurrent()  : mixed
Determines if this revision is the current revision
isDraft()  : mixed
Determines if this revision is a draft.
isFinalized()  : mixed
Determines if the revision has been finalized
isPending()  : mixed
Determines if this revision is pending upon submission for approvals.
normalize()  : mixed
Fixes any properties that should not be left empty / invalid.
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.
setContent()  : mixed
Sets the snapshot of the post into the revision data
store()  : mixed
Saves the revision data
toArray()  : mixed
Converts a table layer into an array

Properties

$created_by

public mixed $created_by = \null

$modified

public mixed $modified = \null

$ordering

public mixed $ordering = \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
since
1.1.0
access

public

canDelete()

Determines the current viewer can delete the revision

public canDelete([mixed $pk = null ][, mixed $joins = null ]) : mixed
Parameters
$pk : mixed = null
$joins : mixed = null
Tags
since
5.0
access

public

@return

delete()

delete revision

public delete([mixed $pk = null ]) : mixed
Parameters
$pk : mixed = null
Tags
since
5.0
access

public

getAuthor()

Retrieves the author of the revision

public getAuthor() : mixed
Tags
since
5.0
access

public

@return

getCategories()

Retrieves the categories of the revision

public getCategories([mixed $output = false ]) : mixed
Parameters
$output : mixed = false
Tags
since
5.0
access

public

@return

getContent()

Returns JSON decoded data of the revision

public getContent() : mixed
Tags
since
5.0
access

public

@return

getCreationDate()

Retrieves the creation date of this revision

public getCreationDate() : mixed
Tags
since
5.0
access

public

@return

getCssState()

Retrieves the css class state for the revision's state

public getCssState() : mixed
Tags
since
5.0
access

public

@return

getDBO()

Retrieves the database object

public getDBO() : mixed
Tags
since
6.0.0
access

public

getDocument()

Retrieves the document object for this revision

public getDocument() : mixed
Tags
since
5.0
access

public

@return

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.

getNextOrdering()

Retrieves the next ordering for this post's series

public getNextOrdering() : mixed
Tags
since
5.0
access

public

@return

getParams()

Generic method to retrive raw json params from the table

public final getParams() : mixed
Tags
since
1.1.0
access

public

getPost()

Retrieve the post object for this revision

public getPost() : mixed
Tags
since
5.0
access

public

@return

getState()

Retrieves the current state of the revision

public getState() : mixed
Tags
since
5.0
access

public

@return

getTitle()

Retrieves the title of the revision

public getTitle() : mixed
Tags
since
5.1
access

public

isCurrent()

Determines if this revision is the current revision

public isCurrent(EasyBlogPost $post) : mixed
Parameters
$post : EasyBlogPost
Tags
since
5.0
access

public

@return

isDraft()

Determines if this revision is a draft.

public isDraft() : mixed
Tags
since
5.0
access

public

@return

isFinalized()

Determines if the revision has been finalized

public isFinalized() : mixed
Tags
since
5.0
access

public

@return

isPending()

Determines if this revision is pending upon submission for approvals.

public isPending() : mixed
Tags
since
5.0
access

public

@return

normalize()

Fixes any properties that should not be left empty / invalid.

public normalize() : mixed
Tags
since
5.0
access

public

@return

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

setContent()

Sets the snapshot of the post into the revision data

public setContent(mixed $content) : mixed
Parameters
$content : mixed
Tags
since
5.0
access

public

@return

store()

Saves the revision data

public store([mixed $pks = null ]) : mixed
Parameters
$pks : mixed = null
Tags
since
5.0
access

public

@return

toArray()

Converts a table layer into an array

public toArray() : mixed
Tags
since
1.1.0
access

public


        
On this page

Search results