com.woltlab.wbb.data.thread
Represents a thread in the forum.
DatabaseObject | --Thread
| Class | Description |
|---|---|
ThreadEditor |
ThreadEditor provides functions to create and edit the data of a thread. |
ViewableThread |
Represents a viewable thread in the forum. |
| Return | Name |
|---|---|
Thread |
__construct(integer $threadID, [array $row = null], [integer $postID = null])
|
void |
canReplyThread([ $board = null])
|
void |
enter([ $board = null], [ $refreshSession = true])
|
boolean |
getPost()
|
mixed |
getRating()
|
array |
getTags( $languageIDArray)
|
void |
isMarked()
|
boolean |
isNew()
|
void |
subscribe()
|
void |
unsubscribe()
|
void |
updateSubscription()
|
protected mixed $board = null
protected mixed $post
Redefined in descendants as: FeedThread::$post
public Thread __construct(integer $threadID, [array $row = null], [integer $postID = null])
Creates a new thread object.
If id is set, the function reads the thread data from database. Otherwise it uses the given resultset.
$threadID - id of a thread $row - resultset with thread data form database $postID - id of a post in the requested thread Redefinition of: DatabaseObject::__construct()
Redefined in descendants as: FeedThread::__construct()
public void canReplyThread([ $board = null])
Returns true, if the active user can reply this thread.
$board public void enter([ $board = null], [ $refreshSession = true])
Enters the active user to this thread.
$board $refreshSession public boolean getPost()
Returns the requested post, if post id was given at creation of the Thread object.
public mixed getRating()
Returns the result of the rating of this thread.
public array getTags( $languageIDArray)
Returns the tags of this thread.
$languageIDArray public void isMarked()
public boolean isNew()
Returns true, if this thread is new for the active user.
public void subscribe()
Subscribes the active user to this thread.
public void unsubscribe()
Unsubscribes the active user to this thread.
public void updateSubscription()
Updates the subscription of this thread for the active user.
DatabaseObject::__construct(), DatabaseObject::handleData(), DatabaseObject::sort(), DatabaseObject::__get()