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
$content
public
mixed
$content
= ''
$created
public
mixed
$created
= \null
$created_by
public
mixed
$created_by
= \null
$id
public
mixed
$id
= \null
$modified
public
mixed
$modified
= \null
$ordering
public
mixed
$ordering
= \null
$post_id
public
mixed
$post_id
= \null
$state
public
mixed
$state
= \null
$title
public
mixed
$title
= \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
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
delete()
delete revision
public
delete([mixed $pk = null ]) : mixed
Parameters
- $pk : mixed = null
Tags
getAuthor()
Retrieves the author of the revision
public
getAuthor() : mixed
Tags
getCategories()
Retrieves the categories of the revision
public
getCategories([mixed $output = false ]) : mixed
Parameters
- $output : mixed = false
Tags
getContent()
Returns JSON decoded data of the revision
public
getContent() : mixed
Tags
getCreationDate()
Retrieves the creation date of this revision
public
getCreationDate() : mixed
Tags
getCssState()
Retrieves the css class state for the revision's state
public
getCssState() : mixed
Tags
getDBO()
Retrieves the database object
public
getDBO() : mixed
Tags
getDiffContent()
Retrieves the post content that is used for diff
public
getDiffContent(EasyBlogTableRevision $target) : mixed
Parameters
- $target : EasyBlogTableRevision
Tags
getDocument()
Retrieves the document object for this revision
public
getDocument() : mixed
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.
getNextOrdering()
Retrieves the next ordering for this post's series
public
getNextOrdering() : mixed
Tags
getParams()
Generic method to retrive raw json params from the table
public
final getParams() : mixed
Tags
getPost()
Retrieve the post object for this revision
public
getPost() : mixed
Tags
getState()
Retrieves the current state of the revision
public
getState() : mixed
Tags
getTitle()
Retrieves the title of the revision
public
getTitle() : mixed
Tags
isCurrent()
Determines if this revision is the current revision
public
isCurrent(EasyBlogPost $post) : mixed
Parameters
- $post : EasyBlogPost
Tags
isDraft()
Determines if this revision is a draft.
public
isDraft() : mixed
Tags
isFinalized()
Determines if the revision has been finalized
public
isFinalized() : mixed
Tags
isPending()
Determines if this revision is pending upon submission for approvals.
public
isPending() : mixed
Tags
normalize()
Fixes any properties that should not be left empty / invalid.
public
normalize() : 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
setContent()
Sets the snapshot of the post into the revision data
public
setContent(mixed $content) : mixed
Parameters
- $content : mixed
Tags
store()
Saves the revision data
public
store([mixed $pks = null ]) : mixed
Parameters
- $pks : mixed = null
Tags
toArray()
Converts a table layer into an array
public
toArray() : mixed