Docs Goabase

CommentsList
in package
uses TraitUser

Table of Contents

Properties

$commentBtn  : string
$commentIDs  : array<string|int, mixed>
$commentList  : string
$commentsTpl  : CommentsTpl
$env  : array<string|int, mixed>
$input  : Input
$nPos  : int
$saAtt  : array<string|int, mixed>
$user  : User

Methods

__construct()  : mixed
cntBy()  : int
Zaehlt die Comments pro tabelle und record_id
generateCommentButton()  : string
generateCommentsList()  : array{'list': string, 'opener': string, 'rows': int}
Zeigt die Kommentare in einem Template
getAjaxComments()  : array<string|int, mixed>
getAjaxMore()  : string
getButtonsTab()  : string
getCommentBtn()  : string
getCommentList()  : string
getUserInstance()  : User
setAtt()  : void
setCommentBtn()  : void
setCommentList()  : void
setInformRead()  : void
set inform read of sub comments
setPos()  : void

Properties

$commentIDs

public array<string|int, mixed> $commentIDs = []

Methods

cntBy()

Zaehlt die Comments pro tabelle und record_id

public cntBy() : int
Return values
int

generateCommentButton()

public generateCommentButton() : string
Tags
throws
Exception
Return values
string

generateCommentsList()

Zeigt die Kommentare in einem Template

public generateCommentsList() : array{'list': string, 'opener': string, 'rows': int}
  • list: listing, opener: the opener link, rows: the amount
Tags
throws
RandomException
throws
Exception
throws
Exception
throws
Exception
throws
Exception
Return values
array{'list': string, 'opener': string, 'rows': int}

getAjaxComments()

public getAjaxComments([int $PID = 0 ]) : array<string|int, mixed>
Parameters
$PID : int = 0
Tags
throws
Exception
Return values
array<string|int, mixed>

getAjaxMore()

public getAjaxMore(int $nLimit, int $TID) : string
Parameters
$nLimit : int
$TID : int
Tags
throws
Exception
Return values
string

getButtonsTab()

public getButtonsTab(int|null $nInformID) : string
Parameters
$nInformID : int|null
Tags
throws
RandomException
Return values
string

getCommentBtn()

public getCommentBtn() : string
Return values
string

getCommentList()

public getCommentList() : string
Return values
string

setAtt()

public setAtt(array<string|int, mixed> $saAtt) : void
Parameters
$saAtt : array<string|int, mixed>

setCommentBtn()

public setCommentBtn(string $commentBtn) : void
Parameters
$commentBtn : string

setCommentList()

public setCommentList(string $commentList) : void
Parameters
$commentList : string

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>

setPos()

public setPos(int $nPos) : void
Parameters
$nPos : int

        
On this page

Search results