EasyBlogTableComment
extends EasyBlogTable
in package
Table of Contents
Properties
- $author : EasyBlogTableProfile
- Stores the comment author object. Cached locally and not on static
- $comment : mixed
- $created : mixed
- $created_by : mixed
- $email : mixed
- $hits : mixed
- $id : mixed
- $ip : mixed
- $lft : mixed
- $modified : mixed
- $name : mixed
- $ordering : mixed
- $parent_id : mixed
- $post_id : mixed
- $publish_down : mixed
- $publish_up : mixed
- $published : mixed
- $rgt : mixed
- $sent : mixed
- $title : mixed
- $url : mixed
- $vote : mixed
- $_supportNullValue : mixed
Methods
- __construct() : mixed
- bind() : mixed
- Bind the table properties
- bindPost() : mixed
- Responsible to bind values into itself.
- delete() : mixed
- Overrides the parent's delete method
- getAuthor() : mixed
- Retrieves the comment author
- getAuthorAvatar() : mixed
- Retrieves the comment author avatar
- getAuthorName() : mixed
- Retrieves the comment author name
- getBlog() : mixed
- Retrieves the blog object associated with this comment
- getContent() : mixed
- Retrieves the formatted comment
- getCreated() : mixed
- Retrieves the created date object
- getDBO() : mixed
- Retrieves the database object
- getInstance() : mixed
- Tired of fixing conflicts with JTable::getInstance . We'll overload their method here.
- getParams() : mixed
- Generic method to retrive raw json params from the table
- getParentComment() : mixed
- Check and retrieve the comment comment.
- getPermalink() : mixed
- Retrieve the permalink to the comment
- getSubscribers() : mixed
- Retrieve a list of user id's from the following:
- getTitle() : mixed
- Retrieves the translated title
- getUrl() : mixed
- Retrieves the comment url
- isCreator() : mixed
- isModerated() : mixed
- Determines if the comment is moderated
- isPublished() : mixed
- Determines if the comment is published
- isReply() : mixed
- isSpam() : mixed
- Determines if this comment is a spam
- isUnpublished() : mixed
- Determines if the comment is unpublished
- processEmails() : mixed
- Process email notifications
- publish() : mixed
- Publishes a comment
- removeStream() : mixed
- Deletes any stream related to this comment
- 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.
- store() : mixed
- Override parent's store behavior
- toArray() : mixed
- Converts a table layer into an array
- unpublish() : mixed
- Allows caller to unpublish a comment
- updateOrdering() : mixed
- Method to update ordering before a comment is saved.
- updateSent() : mixed
- validate() : mixed
- Validates the comment
- validateData() : mixed
- Validates the comment posted
- validatePost() : mixed
- Validates posted data
Properties
$author
Stores the comment author object. Cached locally and not on static
public
EasyBlogTableProfile
$author
= \null
$comment
public
mixed
$comment
= \null
$created
public
mixed
$created
= \null
$created_by
public
mixed
$created_by
= \null
public
mixed
$email
= \null
$hits
public
mixed
$hits
= \null
$id
public
mixed
$id
= \null
$ip
public
mixed
$ip
= \null
$lft
public
mixed
$lft
= \null
$modified
public
mixed
$modified
= \null
$name
public
mixed
$name
= \null
$ordering
public
mixed
$ordering
= \null
$parent_id
public
mixed
$parent_id
= \null
$post_id
public
mixed
$post_id
= \null
$publish_down
public
mixed
$publish_down
= \null
$publish_up
public
mixed
$publish_up
= \null
$published
public
mixed
$published
= \null
$rgt
public
mixed
$rgt
= \null
$sent
public
mixed
$sent
= \null
$title
public
mixed
$title
= \null
$url
public
mixed
$url
= \null
$vote
public
mixed
$vote
= \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
bindPost()
Responsible to bind values into itself.
public
bindPost(array<string|int, mixed> $post) : mixed
Parameters
- $post : array<string|int, mixed>
-
An array of posted values.
Tags
delete()
Overrides the parent's delete method
public
delete([mixed $pk = null ]) : mixed
Parameters
- $pk : mixed = null
Tags
getAuthor()
Retrieves the comment author
public
getAuthor() : mixed
Tags
getAuthorAvatar()
Retrieves the comment author avatar
public
getAuthorAvatar() : mixed
Tags
getAuthorName()
Retrieves the comment author name
public
getAuthorName() : mixed
Tags
getBlog()
Retrieves the blog object associated with this comment
public
getBlog() : mixed
Tags
getContent()
Retrieves the formatted comment
public
getContent([mixed $truncate = true ]) : mixed
Parameters
- $truncate : mixed = true
Tags
getCreated()
Retrieves the created date object
public
getCreated() : mixed
Tags
getDBO()
Retrieves the database object
public
getDBO() : 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.
getParams()
Generic method to retrive raw json params from the table
public
final getParams() : mixed
Tags
getParentComment()
Check and retrieve the comment comment.
public
getParentComment() : mixed
Tags
getPermalink()
Retrieve the permalink to the comment
public
getPermalink([mixed $xhtml = false ]) : mixed
Parameters
- $xhtml : mixed = false
Tags
getSubscribers()
Retrieve a list of user id's from the following:
public
getSubscribers(mixed $blog, mixed $excludeUsers) : mixed
- Users who subscribed to the blog entry
Parameters
- $blog : mixed
- $excludeUsers : mixed
getTitle()
Retrieves the translated title
public
getTitle() : mixed
Tags
getUrl()
Retrieves the comment url
public
getUrl() : mixed
Tags
isCreator()
public
isCreator([mixed $id = '' ]) : mixed
Parameters
- $id : mixed = ''
isModerated()
Determines if the comment is moderated
public
isModerated() : mixed
Tags
isPublished()
Determines if the comment is published
public
isPublished() : mixed
Tags
isReply()
public
isReply() : mixed
isSpam()
Determines if this comment is a spam
public
isSpam() : mixed
Tags
isUnpublished()
Determines if the comment is unpublished
public
isUnpublished() : mixed
Tags
processEmails()
Process email notifications
public
processEmails(mixed $isModerated, mixed $blog[, mixed $task = '' ]) : mixed
Parameters
- $isModerated : mixed
- $blog : mixed
- $task : mixed = ''
Tags
publish()
Publishes a comment
public
publish([mixed $pks = null ][, mixed $state = 1 ][, mixed $userId = 0 ]) : mixed
Parameters
- $pks : mixed = null
- $state : mixed = 1
- $userId : mixed = 0
Tags
removeStream()
Deletes any stream related to this comment
public
removeStream() : 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
store()
Override parent's store behavior
public
store([mixed $isModerated = false ]) : mixed
Parameters
- $isModerated : mixed = false
Tags
toArray()
Converts a table layer into an array
public
toArray() : mixed
Tags
unpublish()
Allows caller to unpublish a comment
public
unpublish() : mixed
Tags
updateOrdering()
Method to update ordering before a comment is saved.
public
updateOrdering() : mixed
updateSent()
public
updateSent() : mixed
validate()
Validates the comment
public
validate(mixed $type) : mixed
Parameters
- $type : mixed
Tags
validateData()
Validates the comment posted
public
validateData() : mixed
Tags
validatePost()
Validates posted data
public
validatePost(mixed $post) : mixed
Parameters
- $post : mixed