Skip to content

class Thread

Oliver edited this page Apr 26, 2020 · 3 revisions

www/includes/forum.inc.php


Thread

In dieser Klasse befinden sich alle Funktionen zum Thread-System

Package

zorg\Forum

author

  • [z]milamber
  • IneX

version

  • 1.0

Overview

Public Properties

No public properties found

Constants

No constants found

Public Methods

adjustThreadRecord() | getLastComment() | getLastUnreadComment() | getNavigation() | getNumPosts() | getNumUnread() | getRecordset() | hasRecords() | hasRights() | printChildPosts() deprecated | setLastSeen() | setRights() |

Methods

adjustThreadRecord()

public adjustThreadRecord(mixed $board, mixed $thread_id) : mixed static

getLastComment()

Holt den letzten Kommentar eines Threads

public getLastComment(string $board, int $thread_id) : array static

getLastUnreadComment()

Holt den letzten ungelesenen Kommentar

public getLastUnreadComment(mixed $board, int $thread_id, mixed $user_id) : array static

getNavigation()

returns the Thread-Title and its navigation-bar

public getNavigation(mixed $board, mixed $id, int $thread_id) : string static

getNumPosts()

Get count of total comments per Thread

public getNumPosts(string $board, int $thread_id) : int|bool static

Tags
  • version: 1.1
  • since: 1.0 method added
  • since: 1.1 29.08.2019 IneX try-catch didn't catch a failed mysql-query, changed it therefore
  • global: object $db Globales Class-Object mit allen MySQL-Methoden

getNumUnread()

Get count of total comment unreads per Thread for a specific user

public getNumUnread(string $board, int $thread_id, int $user_id = null) : int|bool static

Tags
  • version: 1.0
  • since: 1.0 method added
  • global: object $db Globales Class-Object mit allen MySQL-Methoden

getRecordset()

Fetches a Thread and returns its Recordset

public getRecordset(string $board, int $thread_id) : \arr|bool static

Tags
  • version: 2.0
  • since: 1.0 method added
  • since: 2.0 06.11.2018 added parameter validation
  • global: object $db Globales Class-Object mit allen MySQL-Methoden

hasRecords()

public hasRecords(mixed $board, mixed $thread_id) : mixed static

hasRights()

public hasRights(mixed $board, mixed $thread_id, mixed $user_id) : mixed static

printChildPosts()

Post-Recursion Function.

public printChildPosts(mixed $board, int $parent_id, array $depth = array("space")) : void deprecated see smartyresource_comments_get_childposts??? (26.10.2018)static

setLastSeen()

public setLastSeen(mixed $board, mixed $thread_id) : mixed static

setRights()

public setRights(mixed $board, mixed $thread_id, mixed $rights) : mixed static


\ » Classes » Thread

Clone this wiki locally