ForumThread
in package
uses
TraitData
FinalYes
Table of Contents
Properties
- $cfgForum : array<string|int, mixed>
- $nCount : int
- $nID : int
- $nPos : int
- $saAtt : array<string|int, mixed>
- $data : Data
- $user : User
Methods
- __construct() : mixed
- cntThread() : mixed
- Anzahl Posts im Thread
- createPageNavigation() : string
- getDataInstance() : Data
- getSQL() : array<string|int, mixed>
- Get the SQL for the thread
- pseudoDel() : int
- Get's the user_id who pseudo-deleted an entry. for forum only at the moment
- setThreadLimit() : void
- setVisit() : void
- filterByImage() : array<string|int, mixed>
- filteredMyThreadIDs() : array<string|int, mixed>
- getImageIDs() : array<string|int, mixed>
- Gibt komma-separierte IDs zurück
Properties
$cfgForum
public
array<string|int, mixed>
$cfgForum
= []
$nCount
public
int
$nCount
= 0
$nID
public
int
$nID
= 0
$nPos
public
int
$nPos
= 0
$saAtt
public
array<string|int, mixed>
$saAtt
= []
$data
private
Data
$data
$user read-only
private
User
$user
Methods
__construct()
public
__construct(User $user) : mixed
Parameters
- $user : User
cntThread()
Anzahl Posts im Thread
public
cntThread() : mixed
Return values
mixed —returns number of threads
createPageNavigation()
public
createPageNavigation(mixed $nLimit) : string
Parameters
- $nLimit : mixed
Return values
stringgetDataInstance()
public
getDataInstance() : Data
Return values
DatagetSQL()
Get the SQL for the thread
public
getSQL() : array<string|int, mixed>
Return values
array<string|int, mixed> —- 0 - count, 1 = with limit, 3 = without limit
param string $saCfgForum param string $strTemplate
pseudoDel()
Get's the user_id who pseudo-deleted an entry. for forum only at the moment
public
pseudoDel(string $strTableName, int $nRecordID) : int
Parameters
- $strTableName : string
- $nRecordID : int
Tags
Return values
int —0 or user_id
setThreadLimit()
public
setThreadLimit() : void
setVisit()
public
setVisit([string $strThreadTitle = '' ]) : void
Parameters
- $strThreadTitle : string = ''
filterByImage()
private
filterByImage(array<string|int, mixed> $where) : array<string|int, mixed>
Parameters
- $where : array<string|int, mixed>
Return values
array<string|int, mixed>filteredMyThreadIDs()
private
filteredMyThreadIDs(array<string|int, mixed> $where) : array<string|int, mixed>
Parameters
- $where : array<string|int, mixed>
Return values
array<string|int, mixed>getImageIDs()
Gibt komma-separierte IDs zurück
private
getImageIDs() : array<string|int, mixed>