Property | Type | Description | |
---|---|---|---|
$_parent | null | Cached parent from parent() method | |
$field | null | Field | Field this comment is for | |
$loaded | boolean | Is this comment finished loading? | |
$page | null | Page | Page this comment lives on | |
$prevStatus | integer | null | Previous Comment status, when it has been changed |
Method | Description | |
---|---|---|
__construct ( ) | Construct a Comment and set defaults | |
__toString ( ) | String value of a Comment is it's database ID | |
children ( ) : CommentArray | Return children comments, if applicable | |
cleanCommentString ( $str ) | Clean a comment string by issuing several filters | |
get ( $key ) | ||
getField ( ) | ||
getFormatted ( $key ) : mixed | null | Page | string | Same as get() but with output formatting applied | |
getGravatar ( string $email, string $rating = 'g', string $imageset = 'mm', integer $size = 80 ) : string | Returns a URL to this user's gravatar image (static version, use non-static gravatar() function unless you specifically need static) | |
getPage ( ) | ||
gravatar ( string $rating = 'g', string $imageset = 'mm', integer $size = 80 ) : string | Returns a URL to this user's gravatar image | |
isApproved ( ) | Returns true if the comment is approved and thus appearing on the site | |
parent ( ) : Comment | null | Return the parent comment, if applicable | |
renderStars ( array $options = [] ) : string | Render stars markup | |
set ( $key, $value ) | ||
setField ( Field $field ) | ||
setIsLoaded ( $loaded ) | ||
setPage ( Page $page ) |
public children ( ) : CommentArray | ||
return | CommentArray |
public cleanCommentString ( $str ) |
public static getGravatar ( string $email, string $rating = 'g', string $imageset = 'mm', integer $size = 80 ) : string | ||
string | ||
$rating | string | Gravatar rating, one of [ g | pg | r | x ], default is g. |
$imageset | string | Gravatar default imageset, one of [ 404 | mm | identicon | monsterid | wavatar | retro | blank ], default is mm. |
$size | integer | Gravatar image size, default is 80. |
return | string |
public gravatar ( string $rating = 'g', string $imageset = 'mm', integer $size = 80 ) : string | ||
$rating | string | Gravatar rating, one of [ g | pg | r | x ], default is g. |
$imageset | string | Gravatar default imageset, one of [ 404 | mm | identicon | monsterid | wavatar | retro | blank ], default is mm. |
$size | integer | Gravatar image size, default is 80. |
return | string |
public isApproved ( ) |
public renderStars ( array $options = [] ) : string | ||
$options | array | See CommentArray::renderStars for $options |
return | string |
protected null $_parent | ||
return | null |
protected null|Field $field | ||
return | null | Field |
protected bool $loaded | ||
return | boolean |