diff --git a/file/lib/page/ChatPage.class.php b/file/lib/page/ChatPage.class.php index a294867..cc80e2c 100644 --- a/file/lib/page/ChatPage.class.php +++ b/file/lib/page/ChatPage.class.php @@ -14,6 +14,11 @@ * @subpackage page */ class ChatPage extends AbstractPage { + /** + * The version of this installation of Tims Chat 3. + * + * @var string + */ public $chatVersion = ''; /** * @see \wcf\page\AbstractPage::$neededModules @@ -24,11 +29,48 @@ class ChatPage extends AbstractPage { * @see \wcf\page\AbstractPage::$neededPermissions */ public $neededPermissions = array('user.chat.canEnter'); + + /** + * The last X messages for the current room. + * + * @var array<\wcf\data\chat\message\ChatMessage> + */ public $newestMessages = array(); + + /** + * The current room. + * + * @var \wcf\data\chat\room\ChatRoom + */ public $room = null; + + /** + * The given roomID. + * + * @var integer + */ public $roomID = 0; + + /** + * List of accessible rooms. + * + * @var \wcf\data\chat\room\ChatRoomList + */ public $rooms = array(); + + /** + * List of smilies in the default category. + * + * @var array<\wcf\data\smiley\Smiley> + * @see \wcf\data\smiley\SmileyCache + */ public $smilies = array(); + + /** + * Values read from the UserStorage of the current user. + * + * @var array + */ public $userData = array(); /** @@ -92,7 +134,7 @@ public function readData() { ) )); $messageAction->executeAction(); - $return = $messageAction->getReturnValues(); + $messageAction->getReturnValues(); } $this->newestMessages = chat\message\ChatMessageList::getNewestMessages($this->room, CHAT_LASTMESSAGES);