Class Comment
A comment.
- ICanBoogie\Object implements ICanBoogie\ToArrayRecursive uses ICanBoogie\ToArrayRecursiveTrait, ICanBoogie\PrototypeTrait
- ICanBoogie\ActiveRecord
- Icybee\Modules\Comments\Comment implements Brickrouge\CSSClassNames uses Brickrouge\CSSClassNamesProperty
Located at vendor/icanboogie-modules/comments/lib/activerecord/comment.php
Methods summary
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
#
__construct( string|
Defaults model to "comments". |
protected
string
|
|
protected
string
|
|
protected
string
|
|
public
string
|
|
protected
string
|
|
protected
boolean
|
|
protected
array[string]mixed
|
|
public
string
|
Methods inherited from ICanBoogie\ActiveRecord
__sleep()
,
alter_persistent_properties()
,
delete()
,
get_model()
,
get_model_id()
,
save()
Methods inherited from ICanBoogie\Object
from()
,
resolve_facade_properties()
,
resolve_private_properties()
,
to_array()
,
to_json()
Methods inherited from ICanBoogie\ToArrayRecursive
Methods inherited from Brickrouge\CSSClassNames
Methods used from Brickrouge\CSSClassNamesProperty
__get()
,
css_class()
,
get_css_class()
Methods used from ICanBoogie\ToArrayRecursiveTrait
Methods used from ICanBoogie\PrototypeTrait
__call()
,
__set()
,
__wakeup()
,
get_prototype()
,
has_method()
,
has_property()
,
last_chance_get()
,
last_chance_set()
Magic methods summary
Constants summary
string |
COMMENTID
|
'commentid' |
|
string |
NID
|
'nid' |
|
string |
PARENTID
|
'parentid' |
|
string |
UID
|
'uid' |
|
string |
AUTHOR
|
'author' |
|
string |
AUTHOR_EMAIL
|
'author_email' |
|
string |
AUTHOR_URL
|
'author_url' |
|
string |
AUTHOR_IP
|
'author_ip' |
|
string |
CONTENTS
|
'contents' |
|
string |
STATUS
|
'status' |
|
string |
STATUS_APPROVED
|
'approved' |
|
string |
STATUS_PENDING
|
'pending' |
|
string |
STATUS_SPAM
|
'spam' |
|
string |
NOTIFY
|
'notify' |
|
string |
CREATED_AT
|
'created_at' |
|
string |
UPDATED_AT
|
'updated_at' |
Properties summary
public
integer
|
$commentid |
#
Comment identifier. |
public
integer
|
$nid |
#
Node identifier. |
public
integer
|
$parentid |
#
Parent comment identifier. |
public
integer
|
$uid |
#
User identifier. |
public
string
|
$author |
#
Author name. |
public
string
|
$author_email |
#
Author email. |
public
string
|
$author_url |
#
Author's website URL. |
public
string
|
$author_ip |
#
Author IP. |
public
string
|
$contents |
#
Body of the comment. |
public
string
|
$status |
#
Status. One of |
public
string
|
$notify |
#
Notify status. One of |
Properties inherited from ICanBoogie\ActiveRecord
Magic properties
public
|
$created_at |
|
#
The date and time at which the node was created. |
public
|
$updated_at |
|
#
The date and time at which the node was updated. |
public read-only
string
|
$absolute_url |
|
#
URL of the comment. |
public read-only
string
|
$author_icon |
|
#
URL of the author's Gravatar. |
public read-only
string
|
$css_class |
|
#
A suitable string for the HTML |
public read-only
array
|
$css_class_names |
|
#
CSS class names. |
public read-only
string
|
$excerpt |
|
#
HTML excerpt of the comment, made of the first 55 words. |
public read-only
boolean
|
$is_author |
|
#
|
public read-only
|
$node |
|
#
The node the comment is attached to. |
public read-only
string
|
$url |
|
#
URL of the comment relative to the website. |