Method |
Description |
|
__get ( string $name ) : mixed |
Implements custom object properties |
|
by_email ( string $email = '' ) : array |
selects all comments from a given email address |
|
by_ip ( string $ip = '' ) : array |
selects all comments from a given IP address |
|
by_name ( string $name = '' ) : array |
selects all comments from a given name |
|
by_post_id ( integer $post_id ) : array |
Returns all comments for a supplied post ID |
|
by_slug ( string $slug = '' ) : array |
select all comments for a given post slug |
|
by_status ( integer $status ) : array |
select all comments of a given status |
|
by_url ( string $url = '' ) : array |
select all comments from an author's URL |
|
count_by_author ( integer $id, integer | string $status = 'approved' ) : integer |
returns the number of comments attached to posts by the specified author |
|
count_by_email ( string $email = '', integer | string $status = 'approved' ) : integer |
returns the number of comments attributed ot the specified email |
|
count_by_id ( integer $id, integer | string $status = 'approved' ) : integer |
returns the number of comments attached to the specified post |
|
count_by_ip ( string $ip = '', integer | string $status = 'approved' ) : integer |
returns the number of comments from the specified IP address |
|
count_by_name ( string $name = '', integer | string $status = 'approved' ) : integer |
returns the number of comments attributed to the specified name |
|
count_by_slug ( string $slug = '', integer | string $status = 'approved' ) : integer |
returns the number of comments attached to the specified post |
|
count_by_url ( string $url = '', integer | string $status = 'approved' ) : integer |
returns the number of comments attributed to the specified URL |
|
count_total ( integer | string $status = 'approved', integer | string $type = 'comment' ) : integer |
returns the number of comments based on the specified status and type |
|
delete ( ) |
function delete
Deletes all comments in this object |
|
delete_by_status ( integer | string $status ) |
delete all the comments and commentinfo for comments with this status |
|
delete_these ( $comments ) : boolean |
Deletes comments from the database |
|
filter ( Callable | array $filter ) : Comments |
Filter Comments using a callback function |
|
get ( array $paramarray = [] ) : array |
function get
Returns requested comments |
|
moderate_these ( array | Comments $comments, integer | string $status = null ) : boolean |
Changes the status of comments |
|
only ( string $field, mixed $index ) : array |
Returns all of the comments from the current Comments object having the specified index for the specified field
$tb = $comments->only( 'trackbacks' ) |
|
search_to_get ( string $search_string ) : array |
Parses a search string for status, type, author, and tag keywords. Returns
an associative array which can be passed to Comments::get(). If multiple
authors, statuses, or types are specified, we assume an implicit OR
such that (e.g.) any author that matches would be returned. |
|