PHP Class GBComment, gitblog

Accessible from GBComments Managed through GBCommentDB
Show file Open project: rsms/gitblog

Public Properties

Property Type Description
$_countApproved
$_countApprovedTopo
$_countTotal * these two are not serialized, but lazy-initialized by GBComments::count()
$allowedTags Allowed tags, primarily used by GBFilter but here so that themes and other stuff can read it.
$approved
$body
$comments
$date
$email
$id String id (indexpath), available during iteration, etc.
$ipAddress
$name
$post GBExposedContent set when appropriate. Might be null.
$spam # members below are only serialized when non-null
$type
$uri

Public Methods

Method Description
__construct ( $state = [] )
__sleep ( )
_bounceURL ( $relpath, $post = null, $include_referrer = true )
_post ( $post = null )
append ( GBComment $comment )
approveURL ( $post = null, $include_referrer = true )
avatarURL ( $size = 48, $fallback_url = '' )
body ( )
commentURL ( $post = null )
commentsObject ( $post = null )
duplicate ( GBComment $other )
gitAuthor ( )
hamURL ( $post = null, $include_referrer = true )
nameLink ( $attrs = '' )
removeURL ( $post = null, $include_referrer = true )
spamURL ( $post = null, $include_referrer = true )
textBody ( )
unapproveURL ( $post = null, $include_referrer = true )

Method Details

__construct() public method

public __construct ( $state = [] )

__sleep() public method

public __sleep ( )

_bounceURL() public method

public _bounceURL ( $relpath, $post = null, $include_referrer = true )

_post() public method

public _post ( $post = null )

append() public method

public append ( GBComment $comment )
$comment GBComment

approveURL() public method

public approveURL ( $post = null, $include_referrer = true )

avatarURL() public method

public avatarURL ( $size = 48, $fallback_url = '' )

body() public method

public body ( )

commentURL() public method

public commentURL ( $post = null )

commentsObject() public method

public commentsObject ( $post = null )

duplicate() public method

public duplicate ( GBComment $other )
$other GBComment

gitAuthor() public method

public gitAuthor ( )

hamURL() public method

public hamURL ( $post = null, $include_referrer = true )

removeURL() public method

public removeURL ( $post = null, $include_referrer = true )

spamURL() public method

public spamURL ( $post = null, $include_referrer = true )

textBody() public method

public textBody ( )

unapproveURL() public method

public unapproveURL ( $post = null, $include_referrer = true )

Property Details

$_countApproved public property

public $_countApproved

$_countApprovedTopo public property

public $_countApprovedTopo

$_countTotal public property

* these two are not serialized, but lazy-initialized by GBComments::count()
public $_countTotal

$allowedTags public static property

Allowed tags, primarily used by GBFilter but here so that themes and other stuff can read it.
public static $allowedTags

$approved public property

public $approved

$body public property

public $body

$comments public property

public $comments

$date public property

public $date

$email public property

public $email

$id public property

String id (indexpath), available during iteration, etc.
public $id

$ipAddress public property

public $ipAddress

$name public property

public $name

$post public property

GBExposedContent set when appropriate. Might be null.
public $post

$spam public property

# members below are only serialized when non-null
public $spam

$type public property

public $type

$uri public property

public $uri