Class MessageSidebar

com.woltlab.wcf.message.sidebar.data.message.sidebar

Description

Represents a message sidebar.

  • author: Marcel Werk
  • copyright: 2001-2009 WoltLab GmbH
  • license: GNU

	

Variable Summary

Method Summary

Return Name
MessageSidebar __construct(MessageSidebarObject $object, UserProfile $user)
void addUserContact(string $value)
void addUserCredit(string $name, string $value, [string $url = ''])
void addUserSymbol(string $value)
integer getMessageID()
MessageSidebarObject getSidebarObject()
string getStyledUsername()
UserProfile getUser()
array getUserContacts()
array getUserCredits()
static array getUserOptions()
array getUserSymbols()

Variables

$object

public MessageSidebarObject $object = null

sidebar object.


$userContacts

public array $userContacts = array()

list of user contacts


$userCredits

public array $userCredits = array()

list of user credits


$usernameStyle

public string $usernameStyle = '%s'

special username styling


$userOptions

protected static UserOptions $userOptions = null

user options


$userSymbols

public array $userSymbols = array()

list of user symbols

Methods

__construct

public MessageSidebar __construct(MessageSidebarObject $object, UserProfile $user)

Creates a new MessageSidebar object.

Parameters:

  • $user
  • $object

addUserContact

public void addUserContact(string $value)

Adds a user contact option to the sidebar.

Parameters:

  • $value

addUserCredit

public void addUserCredit(string $name, string $value, [string $url = ''])

Adds a user credit to the sidebar.

Parameters:

  • $name
  • $value
  • $url

addUserSymbol

public void addUserSymbol(string $value)

Adds a user symbol to the sidebar.

Parameters:

  • $value

getMessageID

public integer getMessageID()

Returns the message id.


getSidebarObject

public MessageSidebarObject getSidebarObject()

Returns the sidebar object.


getStyledUsername

public string getStyledUsername()

Returns a special username styles.


getUser

public UserProfile getUser()

Returns the user object.


getUserContacts

public array getUserContacts()

Returns the user contacts.


getUserCredits

public array getUserCredits()

Returns the user credits.


getUserOptions

protected static array getUserOptions()

Returns the cached user options.


getUserSymbols

public array getUserSymbols()

Returns the user symbols.