ThreadType
: string
in package
Section / type of the object a thread belongs to (comment / rating). Kept on the thread (`cms_mod_base_comment_threads.type`, `cms_mod_base_rating_threads.type`), not on the comment/rating row. It serves admin moderation, filtering by section and per-type configuration (stars/verbal variant, login, anonymous). The value is a string of up to 32 characters.
Shared by both kinds of threads.
Table of Contents
Cases
- BazaarAdvert = 'bazaar_advert'
- BlogArticle = 'blog_article'
- BlogEvent = 'blog_event'
- BlogGallery = 'blog_gallery'
- BlogGuestbook = 'blog_guestbook'
- ComcatAdvert = 'comcat_advert'
- CompanyCompany = 'company_company'
- DiscussionMessage = 'discussion_message'
- EshopProductSet = 'eshop_product_set'
- SystemUser = 'system_user'
Methods
- checksBlacklistedWords() : bool
- Whether visitor comments of this thread type are checked against the blacklisted words of the page language (System → Blacklisted words). Discussion checks its posts and their comments.
- commentLoginSetting() : array{0: int, 1: string}|null
- Setting that limits comments of this thread type to logged-in users, as `[moduleId, key]`.
- commentPerPageSetting() : array{0: int, 1: string}|null
- Setting with the number of top-level comments per page, as `[moduleId, key]`; null = no paging.
Cases
BlogArticle
BlogGallery
BlogGuestbook
BlogEvent
DiscussionMessage
SystemUser
ComcatAdvert
BazaarAdvert
EshopProductSet
CompanyCompany
Methods
checksBlacklistedWords()
Whether visitor comments of this thread type are checked against the blacklisted words of the page language (System → Blacklisted words). Discussion checks its posts and their comments.
public
checksBlacklistedWords() : bool
Return values
boolcommentLoginSetting()
Setting that limits comments of this thread type to logged-in users, as `[moduleId, key]`.
public
commentLoginSetting() : array{0: int, 1: string}|null
Read by the Api CommentManager::beforeSave() (the gate) and by the front comment thread
component (hides the reply buttons). Only Discussion has such a setting; a type without
one returns null and guests may comment.
Return values
array{0: int, 1: string}|nullcommentPerPageSetting()
Setting with the number of top-level comments per page, as `[moduleId, key]`; null = no paging.
public
commentPerPageSetting() : array{0: int, 1: string}|null