PHP Класс GBComment, gitblog

Accessible from GBComments Managed through GBCommentDB
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$_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

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный Метод

public __construct ( $state = [] )

__sleep() публичный Метод

public __sleep ( )

_bounceURL() публичный Метод

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

_post() публичный Метод

public _post ( $post = null )

append() публичный Метод

public append ( GBComment $comment )
$comment GBComment

approveURL() публичный Метод

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

avatarURL() публичный Метод

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

body() публичный Метод

public body ( )

commentURL() публичный Метод

public commentURL ( $post = null )

commentsObject() публичный Метод

public commentsObject ( $post = null )

duplicate() публичный Метод

public duplicate ( GBComment $other )
$other GBComment

gitAuthor() публичный Метод

public gitAuthor ( )

hamURL() публичный Метод

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

removeURL() публичный Метод

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

spamURL() публичный Метод

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

textBody() публичный Метод

public textBody ( )

unapproveURL() публичный Метод

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

Описание свойств

$_countApproved публичное свойство

public $_countApproved

$_countApprovedTopo публичное свойство

public $_countApprovedTopo

$_countTotal публичное свойство

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

$allowedTags публичное статическое свойство

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

$approved публичное свойство

public $approved

$body публичное свойство

public $body

$comments публичное свойство

public $comments

$date публичное свойство

public $date

$email публичное свойство

public $email

$id публичное свойство

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

$ipAddress публичное свойство

public $ipAddress

$name публичное свойство

public $name

$post публичное свойство

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

$spam публичное свойство

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

$type публичное свойство

public $type

$uri публичное свойство

public $uri