* @category Community Framework
*/
class ConversationAddForm extends MessageForm {
- /**
- * @inheritDoc
- */
- public $enableTracking = true;
-
/**
* @inheritDoc
*/
* @category Community Framework
*/
class ConversationMessageAddForm extends MessageForm {
- /**
- * @inheritDoc
- */
- public $enableTracking = true;
-
/**
* @inheritDoc
*/
'attachmentList' => $this->messageList->getAttachmentList()
]);
}
-
- /**
- * @inheritDoc
- */
- public function getObjectType() {
- return 'com.woltlab.wcf.conversation';
- }
-
- /**
- * @inheritDoc
- */
- public function getObjectID() {
- return $this->conversationID;
- }
}
'attachmentList' => $this->messageList->getAttachmentList()
]);
}
-
- /**
- * @inheritDoc
- */
- public function getObjectType() {
- return 'com.woltlab.wcf.conversation';
- }
-
- /**
- * @inheritDoc
- */
- public function getObjectID() {
- return $this->conversationID;
- }
}
* @property UserConversationList $objectList
*/
class ConversationListPage extends SortablePage {
- /**
- * @inheritDoc
- */
- public $enableTracking = true;
-
/**
* @inheritDoc
*/
* @property ViewableConversationMessageList $objectList
*/
class ConversationPage extends MultipleLinkPage {
- /**
- * @inheritDoc
- */
- public $enableTracking = true;
-
/**
* @inheritDoc
*/
$this->goToLastPost();
}
}
-
- /**
- * @inheritDoc
- */
- public function getObjectType() {
- return 'com.woltlab.wcf.conversation';
- }
-
- /**
- * @inheritDoc
- */
- public function getObjectID() {
- return $this->conversationID;
- }
}
* @return string
*/
public function getOnlineLocation(Page $page, UserOnline $user) {
- if ($user->objectID === null) {
+ if ($user->pageObjectID === null) {
return '';
}
- $conversation = UserConversationRuntimeCache::getInstance()->getObject($user->objectID);
+ $conversation = UserConversationRuntimeCache::getInstance()->getObject($user->pageObjectID);
if ($conversation === null || !$conversation->canRead()) {
return '';
}
* @param UserOnline $user user online object with request data
*/
public function prepareOnlineLocation(Page $page, UserOnline $user) {
- if ($user->objectID !== null) {
- UserConversationRuntimeCache::getInstance()->cacheObjectID($user->objectID);
+ if ($user->pageObjectID !== null) {
+ UserConversationRuntimeCache::getInstance()->cacheObjectID($user->pageObjectID);
}
}
}