Method |
Description |
|
__construct ( array $paramarray = [] ) |
Constructor for the Comment class. |
|
__get ( string $name ) : mixed |
Overrides QueryRecord __get to implement custom object properties |
|
__isset ( string $name ) : boolean |
Overrides QueryRecord __isset to implement custom object properties |
|
__set ( string $name, mixed $value ) : mixed |
Overrides QueryRecord __set to implement custom object properties |
|
__static ( ) |
Register plugin hooks |
|
add_status ( string $status, boolean $internal = false ) : integer |
Register a new comment status |
|
add_type ( string $type ) : integer |
Register a new comment type |
|
content_type ( ) : string |
Return the content type of this object |
|
create ( array $paramarray ) : Comment |
Creates a comment and saves it |
|
css_class ( string | array $append = [] ) : string |
Returns a list of CSS classes for the comment |
|
default_fields ( ) : array |
Returns the defined database columns for a comment |
|
delete ( ) : boolean |
Deletes this comment |
|
filter_comment_status_display_4 ( string $status ) : string |
How to display the built-in comment statuses. |
|
filter_comment_type_display_4 ( string $type, string $foruse ) : string |
How to display the built-in comment types. |
|
get ( integer $id ) : array |
static function get
Returns a single comment, by ID |
|
get_access ( User $user = null ) : Bitmask |
Returns an access Bitmask for the given user on this comment. Read access is determined
by the associated post. Update/delete is determined by the comment management tokens. |
|
insert ( ) : integer | boolean |
Saves a new comment to the comments table |
|
list_comment_statuses ( boolean $refresh = false ) : array |
Obtain an associative array of comment statuses |
|
list_comment_types ( boolean $refresh = false ) : array |
Obtain an associative array of comment types |
|
remove_status ( integer | string $status, null | integer | string $newstatus = null ) |
Remove a comment type from the database |
|
remove_type ( integer | string $type, boolean $delete = false ) |
Remove a comment type from the database |
|
status ( string | integer $name ) : integer | boolean |
Obtain the integer value of the specified comment status, or false |
|
status_action ( integer | string $status ) : string |
Obtain the action name of the comment status |
|
status_name ( integer | string $status ) : string |
Obtain the friendly name of a comment status |
|
type ( integer | string $name ) : mixed |
Obtain the integer value of the specified comment type, or false |
|
type_name ( $type ) : string |
Obtain the friendly name of a comment type, or null |
|
update ( ) : boolean |
Updates an existing comment in the comments table |
|