com.woltlab.wbb.data.user
Represents a user session in the forum.
DatabaseObject | --User | --UserSession | --AbstractWBBUserSession | --WBBUserSession
| Type | Name |
|---|---|
DisplayableAvatar |
$avatar |
mixed |
$boardSubscriptions |
mixed |
$boardVisits |
mixed |
$closedCategories |
mixed |
$hasSubscriptions |
mixed |
$ignoredBoards |
mixed |
$ignores |
mixed |
$invitations |
mixed |
$outstandingGroupApplications |
mixed |
$outstandingModerations |
mixed |
$outstandingNotifications |
mixed |
$subscriptionsUnreadCount |
| Return | Name |
|---|---|
WBBUserSession |
__construct([ $userID = null], [ $row = null], [ $username = null])
|
void |
closeCategory(integer $boardID, [integer $close = 1])
|
DisplayableAvatar |
getAvatar()
|
void |
getBoardSubscriptions()
|
void |
getBoardVisits()
|
integer |
getBoardVisitTime(integer $boardID)
|
void |
getClosedCategories()
|
void |
getGroupData()
|
void |
getIgnoredBoards()
|
void |
getInvitations()
|
integer |
getLastMarkAllAsReadTime()
|
integer |
getOutstandingGroupApplications()
|
integer |
getOutstandingModerations()
|
void |
getOutstandingNotifications()
|
integer |
getSubscriptionsUnreadCount()
|
void |
handleData( $data)
|
void |
hasSubscriptions()
|
boolean |
ignores( $userID)
|
void |
init()
|
boolean |
isBoardSubscription(integer $boardID)
|
boolean |
isClosedCategory(integer $boardID)
|
boolean |
isGroupLeader()
|
boolean |
isIgnoredBoard(integer $boardID)
|
integer |
isModerator()
|
void |
setBoardVisitTime(integer $boardID)
|
void |
setLastMarkAllAsReadTime( $timestamp)
|
void |
setLastVisitTime( $timestamp)
|
void |
setThreadVisitTime(integer $threadID, [ $timestamp = TIME_NOW])
|
void |
subscribeBoard(integer $boardID)
|
void |
unsubscribeBoard(integer $boardID)
|
void |
update()
|
static void |
updateBoardLastActivityTime(integer $userID, [integer $timestamp = TIME_NOW])
|
void |
updateBoardSubscription(integer $boardID)
|
static void |
updateLastActivityTime(integer $userID, [integer $timestamp = TIME_NOW])
|
protected DisplayableAvatar $avatar = null
displayable avatar object.
protected mixed $boardSubscriptions
protected mixed $boardVisits
protected mixed $closedCategories
protected mixed $hasSubscriptions = null
protected mixed $ignoredBoards
protected mixed $ignores = null
protected mixed $invitations = null
protected mixed $outstandingGroupApplications = null
protected mixed $outstandingModerations = null
protected mixed $outstandingNotifications = null
protected mixed $subscriptionsUnreadCount = null
AbstractWBBUserSession::$boardModeratorPermissions, AbstractWBBUserSession::$boardPermissions
User::$groupIDs, User::$sqlGroupBy, User::$sqlJoins, User::$sqlSelects, User::$userOptions
public WBBUserSession __construct([ $userID = null], [ $row = null], [ $username = null])
public void closeCategory(integer $boardID, [integer $close = 1])
Closes the category with the given board id for this user.
$boardID $close - public DisplayableAvatar getAvatar()
Returns the avatar of this user.
protected void getBoardSubscriptions()
Loads the subscribed boards of this user from database.
protected void getBoardVisits()
Loads the board visits of this user from database.
public integer getBoardVisitTime(integer $boardID)
Returns the board visit of this user for the board with the given board id.
$boardID protected void getClosedCategories()
Loads the closed categories of this user from database.
protected void getGroupData()
Redefinition of: AbstractWBBUserSession::getGroupData()
protected void getIgnoredBoards()
Loads the ignored boards of this user from database.
public void getInvitations()
public integer getLastMarkAllAsReadTime()
Returns the last mark all as read timestamp.
public integer getOutstandingGroupApplications()
Returns the number of outstanding group applications.
public integer getOutstandingModerations()
Returns the number of outstanding thread / post moderations.
public void getOutstandingNotifications()
public integer getSubscriptionsUnreadCount()
Returns the number of unread subscribed threads.
protected void handleData( $data)
public void hasSubscriptions()
Returns true, if the user has subscriptions.
public boolean ignores( $userID)
Returns true, if the active user ignores the given user.
$userID public void init()
public boolean isBoardSubscription(integer $boardID)
Returns true, if the board with the given board id is a subscribed board of this user.
$boardID public boolean isClosedCategory(integer $boardID)
Returns true, if the category with the given board id is closed by this user.
$boardID public boolean isGroupLeader()
Returns true, if the user is a group leader.
public boolean isIgnoredBoard(integer $boardID)
Returns true, if the board with the given board id is ignored by this user.
$boardID public integer isModerator()
Returns true, if the user is a moderator.
public void setBoardVisitTime(integer $boardID)
Sets the board visit of this user for the board with the given board id.
$boardID public void setLastMarkAllAsReadTime( $timestamp)
Sets the last mark all as read timestamp.
$timestamp public void setLastVisitTime( $timestamp)
Sets the global board last visit timestamp.
$timestamp public void setThreadVisitTime(integer $threadID, [ $timestamp = TIME_NOW])
Sets the thread visit of this user for the thread with the given thread id.
$threadID $timestamp public void subscribeBoard(integer $boardID)
Subscribes the board with the given board id for this user.
$boardID public void unsubscribeBoard(integer $boardID)
Unsubscribes the board with the given board id for this user.
$boardID public void update()
public static void updateBoardLastActivityTime(integer $userID, [integer $timestamp = TIME_NOW])
Updates the board last activity timestamp in user database.
$userID $timestamp public void updateBoardSubscription(integer $boardID)
Updates the subscription of the board with the given board for this user.
$boardID public static void updateLastActivityTime(integer $userID, [integer $timestamp = TIME_NOW])
Updates the global last activity timestamp in user database.
$userID $timestamp AbstractWBBUserSession::getBoardModeratorPermission(), AbstractWBBUserSession::getBoardPermission(), AbstractWBBUserSession::getGroupData()
UserSession::__construct(), UserSession::checkPermission(), UserSession::getGroupData(), UserSession::getPermission(), UserSession::handleData(), UserSession::init(), UserSession::saveStatus(), UserSession::update()
User::__construct(), User::checkCookiePassword(), User::checkPassword(), User::getEditor(), User::getGroupIDs(), User::getNewest(), User::getSalt(), User::getUserOption(), User::getUserOptionCache(), User::getUserOptionID(), User::getUsers(), User::handleData(), User::__get(), User::__toString()
DatabaseObject::__construct(), DatabaseObject::handleData(), DatabaseObject::sort(), DatabaseObject::__get()