CommentsList
in package
uses
TraitData, TraitUser
FinalYes
Table of Contents
Properties
- $commentBtn : string
- $commentList : string
- $nPos : int
- $saAtt : array<string|int, mixed>
- $commentsTpl : CommentsTpl
- $data : Data
- $env : array<string|int, mixed>
- $user : User
Methods
- __construct() : mixed
- cntBy() : int
- Zaehlt die Comments pro tabelle und record_id
- generateCommentsList() : array{list?: string, opener?: string, rows?: int}
- Zeigt die Kommentare in einem Template
- getButtonsTab() : string
- getDataInstance() : Data
- getMoreComments() : array<string|int, mixed>
- getUserInstance() : User
- loadSQLData() : array<string|int, mixed>
- setInformRead() : void
- set inform read of sub comments
- generateCommentButton() : void
- getAjaxMore() : string
Properties
$commentBtn
public
string
$commentBtn
= ''
$commentList
public
string
$commentList
= ''
$nPos
public
int
$nPos
= 0
$saAtt
public
array<string|int, mixed>
$saAtt
= []
$commentsTpl
private
CommentsTpl
$commentsTpl
$data
private
Data
$data
$env
private
array<string|int, mixed>
$env
$user
private
User
$user
Methods
__construct()
public
__construct() : mixed
cntBy()
Zaehlt die Comments pro tabelle und record_id
public
cntBy() : int
Return values
intgenerateCommentsList()
Zeigt die Kommentare in einem Template
public
generateCommentsList() : array{list?: string, opener?: string, rows?: int}
- list: listing, opener: the opener link, rows: the amount
Return values
array{list?: string, opener?: string, rows?: int}getButtonsTab()
public
getButtonsTab(int|null $nInformID) : string
Parameters
- $nInformID : int|null
Return values
stringgetDataInstance()
public
getDataInstance() : Data
Return values
DatagetMoreComments()
public
getMoreComments([int $PID = 0 ]) : array<string|int, mixed>
Parameters
- $PID : int = 0
Return values
array<string|int, mixed>getUserInstance()
public
getUserInstance() : User
Return values
UserloadSQLData()
public
loadSQLData(int $nLimit) : array<string|int, mixed>
Parameters
- $nLimit : int
Return values
array<string|int, mixed>setInformRead()
set inform read of sub comments
public
setInformRead(array<string|int, mixed> $saAtt) : void
it's working this way: if an entry has an sub-entry, we update it for that user in user_inform, if it's unread.
Parameters
- $saAtt : array<string|int, mixed>
generateCommentButton()
private
generateCommentButton() : void
getAjaxMore()
private
getAjaxMore(int $nLimit, int $TID) : string
Parameters
- $nLimit : int
- $TID : int