public $conversationID = 0;
/**
- * @see \wcf\data\DatabaseObjectList::$sqlLimit
+ * @inheritDoc
*/
public $sqlLimit = 0;
}
/**
- * @see \wcf\data\DatabaseObjectList::countObjects()
+ * @inheritDoc
*/
public function countObjects() {
$sql = "SELECT COUNT(*) AS count
}
/**
- * @see \wcf\data\DatabaseObjectList::readObjectIDs()
+ * @inheritDoc
*/
public function readObjectIDs() {
$this->objectIDs = [];
}
/**
- * @see \wcf\data\user\UserProfileList::readObjects()
+ * @inheritDoc
*/
public function readObjects() {
parent::readObjects();
*/
class FeedConversation extends DatabaseObjectDecorator implements IFeedEntry {
/**
- * @see \wcf\data\DatabaseObjectDecorator::$baseClass
+ * @inheritDoc
*/
protected static $baseClass = 'wcf\data\conversation\Conversation';
/**
- * @see \wcf\data\ILinkableObject::getLink()
+ * @inheritDoc
*/
public function getLink() {
return LinkHandler::getInstance()->getLink('Conversation', [
}
/**
- * @see \wcf\data\ITitledObject::getTitle()
+ * @inheritDoc
*/
public function getTitle() {
return $this->getDecoratedObject()->getTitle();
}
/**
- * @see \wcf\data\IMessage::getFormattedMessage()
+ * @inheritDoc
*/
public function getFormattedMessage() {
return '';
}
/**
- * @see \wcf\data\IMessage::getMessage()
+ * @inheritDoc
*/
public function getMessage() {
return '';
}
/**
- * @see \wcf\data\IMessage::getExcerpt()
+ * @inheritDoc
*/
public function getExcerpt($maxLength = 255) {
return '';
}
/**
- * @see \wcf\data\IMessage::getUserID()
+ * @inheritDoc
*/
public function getUserID() {
return $this->getDecoratedObject()->lastPosterID;
}
/**
- * @see \wcf\data\IMessage::getUsername()
+ * @inheritDoc
*/
public function getUsername() {
return $this->getDecoratedObject()->lastPoster;
}
/**
- * @see \wcf\data\IMessage::getTime()
+ * @inheritDoc
*/
public function getTime() {
return $this->getDecoratedObject()->lastPostTime;
}
/**
- * @see \wcf\data\IMessage::__toString()
+ * @inheritDoc
*/
public function __toString() {
return $this->getDecoratedObject()->__toString();
}
/**
- * @see \wcf\data\IFeedEntry::getComments()
+ * @inheritDoc
*/
public function getComments() {
return $this->replies;
}
/**
- * @see \wcf\data\IFeedEntry::getCategories()
+ * @inheritDoc
*/
public function getCategories() {
return [];
}
/**
- * @see \wcf\data\IMessage::isVisible()
+ * @inheritDoc
*/
public function isVisible() {
return $this->canRead();
*/
class ConversationLabelAction extends AbstractDatabaseObjectAction {
/**
- * @see \wcf\data\AbstractDatabaseObjectAction::$className
+ * @inheritDoc
*/
protected $className = 'wcf\data\conversation\label\ConversationLabelEditor';
/**
- * @see \wcf\data\AbstractDatabaseObjectAction::$permissionsDelete
+ * @inheritDoc
*/
protected $permissionsDelete = ['user.conversation.canUseConversation'];
/**
- * @see \wcf\data\AbstractDatabaseObjectAction::$permissionsUpdate
+ * @inheritDoc
*/
protected $permissionsUpdate = ['user.conversation.canUseConversation'];
public $labelList = null;
/**
- * @see \wcf\data\AbstractDatabaseObjectAction::validateUpdate()
+ * @inheritDoc
*/
public function validateUpdate() {
parent::validateUpdate();
}
/**
- * @see \wcf\data\AbstractDatabaseObjectAction::validateDelete()
+ * @inheritDoc
*/
public function validateDelete() {
parent::validateDelete();
*/
class ConversationMessageAction extends AbstractDatabaseObjectAction implements IAttachmentMessageQuickReplyAction, IMessageInlineEditorAction, IMessageQuoteAction {
/**
- * @see \wcf\data\AbstractDatabaseObjectAction::$className
+ * @inheritDoc
*/
protected $className = 'wcf\data\conversation\message\ConversationMessageEditor';
public $message = null;
/**
- * @see \wcf\data\AbstractDatabaseObjectAction::create()
+ * @inheritDoc
*/
public function create() {
// count attachments
}
/**
- * @see \wcf\data\AbstractDatabaseObjectAction::update()
+ * @inheritDoc
*/
public function update() {
// count attachments
}
/**
- * @see \wcf\data\AbstractDatabaseObjectAction::delete()
+ * @inheritDoc
*/
public function delete() {
$count = parent::delete();
}
/**
- * @see \wcf\data\IMessageQuickReply::validateQuickReply()
+ * @inheritDoc
*/
public function validateQuickReply() {
QuickReplyManager::getInstance()->setAllowedBBCodes(explode(',', WCF::getSession()->getPermission('user.message.allowedBBCodes')));
}
/**
- * @see \wcf\data\IMessageQuickReply::quickReply()
+ * @inheritDoc
*/
public function quickReply() {
return QuickReplyManager::getInstance()->createMessage(
}
/**
- * @see \wcf\data\IExtendedMessageQuickReplyAction::validateJumpToExtended()
+ * @inheritDoc
*/
public function validateJumpToExtended() {
$this->readInteger('containerID');
}
/**
- * @see \wcf\data\IExtendedMessageQuickReplyAction::jumpToExtended()
+ * @inheritDoc
*/
public function jumpToExtended() {
// quick reply
}
/**
- * @see \wcf\data\IMessageInlineEditorAction::validateBeginEdit()
+ * @inheritDoc
*/
public function validateBeginEdit() {
$this->readInteger('containerID');
}
/**
- * @see \wcf\data\IMessageInlineEditorAction::beginEdit()
+ * @inheritDoc
*/
public function beginEdit() {
BBCodeHandler::getInstance()->setAllowedBBCodes(explode(',', WCF::getSession()->getPermission('user.message.allowedBBCodes')));
}
/**
- * @see \wcf\data\IMessageInlineEditorAction::validateSave()
+ * @inheritDoc
*/
public function validateSave() {
$this->readString('message', true, 'data');
}
/**
- * @see \wcf\data\IMessageInlineEditorAction::save()
+ * @inheritDoc
*/
public function save() {
$data = [
}
/**
- * @see \wcf\data\IMessageQuickReply::validateContainer()
+ * @inheritDoc
*/
public function validateContainer(DatabaseObject $conversation) {
if (!$conversation->conversationID) {
}
/**
- * @see \wcf\data\IMessageQuickReplyAction::validateMessage()
+ * @inheritDoc
*/
public function validateMessage(DatabaseObject $container, $message) {
if (mb_strlen($message) > WCF::getSession()->getPermission('user.conversation.maxLength')) {
}
/**
- * @see \wcf\data\IMessageQuickReplyAction::getMessageList()
+ * @inheritDoc
*/
public function getMessageList(DatabaseObject $conversation, $lastMessageTime) {
$messageList = new ViewableConversationMessageList();
}
/**
- * @see \wcf\data\IMessageQuickReply::getPageNo()
+ * @inheritDoc
*/
public function getPageNo(DatabaseObject $conversation) {
$sql = "SELECT COUNT(*) AS count
}
/**
- * @see \wcf\data\IMessageQuickReply::getRedirectUrl()
+ * @inheritDoc
*/
public function getRedirectUrl(DatabaseObject $conversation, DatabaseObject $message) {
return LinkHandler::getInstance()->getLink('Conversation', [
}
/**
- * @see \wcf\data\IMessageQuoteAction::validateSaveFullQuote()
+ * @inheritDoc
*/
public function validateSaveFullQuote() {
$this->message = $this->getSingleObject();
}
/**
- * @see \wcf\data\IMessageQuoteAction::saveFullQuote()
+ * @inheritDoc
*/
public function saveFullQuote() {
$quoteID = MessageQuoteManager::getInstance()->addQuote(
}
/**
- * @see \wcf\data\IMessageQuoteAction::validateSaveQuote()
+ * @inheritDoc
*/
public function validateSaveQuote() {
$this->readString('message');
}
/**
- * @see \wcf\data\IMessageQuoteAction::saveQuote()
+ * @inheritDoc
*/
public function saveQuote() {
$quoteID = MessageQuoteManager::getInstance()->addQuote('com.woltlab.wcf.conversation.message', $this->message->conversationID, $this->message->messageID, $this->parameters['message'], false);
}
/**
- * @see \wcf\data\IMessageQuoteAction::validateGetRenderedQuotes()
+ * @inheritDoc
*/
public function validateGetRenderedQuotes() {
$this->readInteger('parentObjectID');
}
/**
- * @see \wcf\data\IMessageQuoteAction::getRenderedQuotes()
+ * @inheritDoc
*/
public function getRenderedQuotes() {
$quotes = MessageQuoteManager::getInstance()->getQuotesByParentObjectID('com.woltlab.wcf.conversation.message', $this->conversation->conversationID);
}
/**
- * @see \wcf\data\IAttachmentMessageQuickReplyAction::getAttachmentHandler()
+ * @inheritDoc
*/
public function getAttachmentHandler(DatabaseObject $conversation) {
return new AttachmentHandler('com.woltlab.wcf.conversation.message', 0, $this->parameters['tmpHash']);
}
/**
- * @see \wcf\data\conversation\message\ConversationMessage::getFormattedMessage()
+ * @inheritDoc
*/
public function getFormattedMessage() {
return SearchResultTextParser::getInstance()->parse($this->getDecoratedObject()->getSimplifiedFormattedMessage());
}
/**
- * @see \wcf\data\search\ISearchResultObject::getSubject()
+ * @inheritDoc
*/
public function getSubject() {
return $this->subject;
}
/**
- * @see \wcf\data\search\ISearchResultObject::getLink()
+ * @inheritDoc
*/
public function getLink($query = '') {
if ($query) {
}
/**
- * @see \wcf\data\search\ISearchResultObject::getTime()
+ * @inheritDoc
*/
public function getTime() {
return $this->time;
}
/**
- * @see \wcf\data\search\ISearchResultObject::getObjectTypeName()
+ * @inheritDoc
*/
public function getObjectTypeName() {
return 'com.woltlab.wcf.conversation.message';
}
/**
- * @see \wcf\data\search\ISearchResultObject::getContainerTitle()
+ * @inheritDoc
*/
public function getContainerTitle() {
return '';
}
/**
- * @see \wcf\data\search\ISearchResultObject::getContainerLink()
+ * @inheritDoc
*/
public function getContainerLink() {
return '';
*/
class SimplifiedViewableConversationMessageList extends ViewableConversationMessageList {
/**
- * @see \wcf\data\conversation\message\ViewableConversationMessageList::$attachmentLoading
+ * @inheritDoc
*/
protected $attachmentLoading = false;
/**
- * @see \wcf\data\conversation\message\ViewableConversationMessageList::$embeddedObjectLoading
+ * @inheritDoc
*/
protected $embeddedObjectLoading = false;
}
*/
class ConversationAddForm extends MessageForm {
/**
- * @see \wcf\page\AbstractPage::$enableTracking
+ * @inheritDoc
*/
public $enableTracking = true;
/**
- * @see \wcf\form\MessageForm::$attachmentObjectType
+ * @inheritDoc
*/
public $attachmentObjectType = 'com.woltlab.wcf.conversation.message';
/**
- * @see \wcf\page\AbstractPage::$loginRequired
+ * @inheritDoc
*/
public $loginRequired = true;
/**
- * @see \wcf\page\AbstractPage::$neededModules
+ * @inheritDoc
*/
public $neededModules = ['MODULE_CONVERSATION'];
/**
- * @see \wcf\page\AbstractPage::$neededPermissions
+ * @inheritDoc
*/
public $neededPermissions = ['user.conversation.canUseConversation'];
public $invisibleParticipantIDs = [];
/**
- * @see \wcf\page\IPage::readParameters()
+ * @inheritDoc
*/
public function readParameters() {
parent::readParameters();
}
/**
- * @see \wcf\form\IForm::readFormParameters()
+ * @inheritDoc
*/
public function readFormParameters() {
parent::readFormParameters();
}
/**
- * @see \wcf\form\IForm::validate()
+ * @inheritDoc
*/
public function validate() {
if (empty($this->participants) && empty($this->invisibleParticipants) && !$this->draft) {
}
/**
- * @see \wcf\form\IForm::save()
+ * @inheritDoc
*/
public function save() {
parent::save();
}
/**
- * @see \wcf\page\IPage::readData()
+ * @inheritDoc
*/
public function readData() {
parent::readData();
}
/**
- * @see \wcf\page\IPage::assignVariables()
+ * @inheritDoc
*/
public function assignVariables() {
parent::assignVariables();
*/
class ConversationMessageAddForm extends MessageForm {
/**
- * @see \wcf\page\AbstractPage::$enableTracking
+ * @inheritDoc
*/
public $enableTracking = true;
/**
- * @see \wcf\form\MessageForm::$attachmentObjectType
+ * @inheritDoc
*/
public $attachmentObjectType = 'com.woltlab.wcf.conversation.message';
/**
- * @see \wcf\page\AbstractPage::$loginRequired
+ * @inheritDoc
*/
public $loginRequired = true;
/**
- * @see \wcf\page\AbstractPage::$neededModules
+ * @inheritDoc
*/
public $neededModules = ['MODULE_CONVERSATION'];
/**
- * @see \wcf\page\AbstractPage::$neededPermissions
+ * @inheritDoc
*/
public $neededPermissions = ['user.conversation.canUseConversation'];
public $messageList = null;
/**
- * @see \wcf\form\IPage::readParameters()
+ * @inheritDoc
*/
public function readParameters() {
parent::readParameters();
}
/**
- * @see \wcf\form\IForm::readFormParameters()
+ * @inheritDoc
*/
public function readFormParameters() {
parent::readFormParameters();
}
/**
- * @see \wcf\form\MessageForm::validateSubject()
+ * @inheritDoc
*/
protected function validateSubject() {}
/**
- * @see \wcf\page\IPage::readData()
+ * @inheritDoc
*/
public function readData() {
parent::readData();
}
/**
- * @see \wcf\form\IForm::save()
+ * @inheritDoc
*/
public function save() {
parent::save();
}
/**
- * @see \wcf\page\IPage::assignVariables()
+ * @inheritDoc
*/
public function assignVariables() {
parent::assignVariables();
}
/**
- * @see \wcf\page\ITrackablePage::getObjectType()
+ * @inheritDoc
*/
public function getObjectType() {
return 'com.woltlab.wcf.conversation';
}
/**
- * @see \wcf\page\ITrackablePage::getObjectID()
+ * @inheritDoc
*/
public function getObjectID() {
return $this->conversationID;
*/
class ConversationMessageEditForm extends ConversationAddForm {
/**
- * @see \wcf\page\AbstractPage::$templateName
+ * @inheritDoc
*/
public $templateName = 'conversationMessageEdit';
public $isFirstMessage = false;
/**
- * @see \wcf\form\IPage::readParameters()
+ * @inheritDoc
*/
public function readParameters() {
MessageForm::readParameters();
}
/**
- * @see \wcf\form\IForm::readFormParameters()
+ * @inheritDoc
*/
public function readFormParameters() {
parent::readFormParameters();
}
/**
- * @see \wcf\form\IForm::validate()
+ * @inheritDoc
*/
public function validate() {
if ($this->isFirstMessage && $this->conversation->isDraft) parent::validate();
}
/**
- * @see \wcf\form\MessageForm::validateSubject()
+ * @inheritDoc
*/
protected function validateSubject() {
if ($this->isFirstMessage) parent::validateSubject();
}
/**
- * @see \wcf\form\IForm::save()
+ * @inheritDoc
*/
public function save() {
MessageForm::save();
}
/**
- * @see \wcf\page\IPage::readData()
+ * @inheritDoc
*/
public function readData() {
MessageForm::readData();
}
/**
- * @see \wcf\page\IPage::assignVariables()
+ * @inheritDoc
*/
public function assignVariables() {
parent::assignVariables();
}
/**
- * @see \wcf\page\ITrackablePage::getObjectType()
+ * @inheritDoc
*/
public function getObjectType() {
return 'com.woltlab.wcf.conversation';
}
/**
- * @see \wcf\page\ITrackablePage::getObjectID()
+ * @inheritDoc
*/
public function getObjectID() {
return $this->conversationID;
*/
class ConversationFeedPage extends AbstractFeedPage {
/**
- * @see \wcf\page\AbstractPage::$loginRequired
+ * @inheritDoc
*/
public $loginRequired = true;
/**
- * @see \wcf\page\IPage::readData()
+ * @inheritDoc
*/
public function readData() {
parent::readData();
*/
class ConversationMessageAttachmentObjectType extends AbstractAttachmentObjectType {
/**
- * @see \wcf\system\attachment\IAttachmentObjectType::getMaxSize()
+ * @inheritDoc
*/
public function getMaxSize() {
return WCF::getSession()->getPermission('user.conversation.maxAttachmentSize');
}
/**
- * @see \wcf\system\attachment\IAttachmentObjectType::getAllowedExtensions()
+ * @inheritDoc
*/
public function getAllowedExtensions() {
return ArrayUtil::trim(explode("\n", WCF::getSession()->getPermission('user.conversation.allowedAttachmentExtensions')));
}
/**
- * @see \wcf\system\attachment\IAttachmentObjectType::getMaxCount()
+ * @inheritDoc
*/
public function getMaxCount() {
return WCF::getSession()->getPermission('user.conversation.maxAttachmentCount');
}
/**
- * @see \wcf\system\attachment\IAttachmentObjectType::canDownload()
+ * @inheritDoc
*/
public function canDownload($objectID) {
if ($objectID) {
}
/**
- * @see \wcf\system\attachment\IAttachmentObjectType::canUpload()
+ * @inheritDoc
*/
public function canUpload($objectID, $parentObjectID = 0) {
if (!WCF::getSession()->getPermission('user.conversation.canUploadAttachment')) {
}
/**
- * @see \wcf\system\attachment\IAttachmentObjectType::canDelete()
+ * @inheritDoc
*/
public function canDelete($objectID) {
if ($objectID) {
}
/**
- * @see \wcf\system\attachment\IAttachmentObjectType::cacheObjects()
+ * @inheritDoc
*/
public function cacheObjects(array $objectIDs) {
$messageList = new ConversationMessageList();
}
/**
- * @see \wcf\system\attachment\IAttachmentObjectType::setPermissions()
+ * @inheritDoc
*/
public function setPermissions(array $attachments) {
$messageIDs = [];
*/
class ConversationClipboardAction extends AbstractClipboardAction {
/**
- * @see \wcf\system\clipboard\action\AbstractClipboardAction::$actionClassActions
+ * @inheritDoc
*/
protected $actionClassActions = ['close', 'markAsRead', 'open'];
public $conversations = null;
/**
- * @see \wcf\system\clipboard\action\AbstractClipboardAction::$supportedActions
+ * @inheritDoc
*/
protected $supportedActions = ['assignLabel', 'close', 'leave', 'leavePermanently', 'markAsRead', 'open', 'restore'];
/**
- * @see \wcf\system\clipboard\action\IClipboardAction::execute()
+ * @inheritDoc
*/
public function execute(array $objects, ClipboardAction $action) {
if ($this->conversations === null) {
}
/**
- * @see \wcf\system\clipboard\action\IClipboardAction::getClassName()
+ * @inheritDoc
*/
public function getClassName() {
return 'wcf\data\conversation\ConversationAction';
}
/**
- * @see \wcf\system\clipboard\action\IClipboardAction::getTypeName()
+ * @inheritDoc
*/
public function getTypeName() {
return 'com.woltlab.wcf.conversation.conversation';
}
/**
- * @see \wcf\system\importer\IImporter::import()
+ * @inheritDoc
*/
public function import($oldID, array $data, array $additionalData = []) {
$data['objectID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.conversation.message', $data['objectID']);
*/
class ConversationImporter extends AbstractImporter {
/**
- * @see \wcf\system\importer\AbstractImporter::$className
+ * @inheritDoc
*/
protected $className = 'wcf\data\conversation\Conversation';
/**
- * @see \wcf\system\importer\IImporter::import()
+ * @inheritDoc
*/
public function import($oldID, array $data, array $additionalData = []) {
$oldUserID = $data['userID'];
*/
class ConversationLabelImporter extends AbstractImporter {
/**
- * @see \wcf\system\importer\AbstractImporter::$className
+ * @inheritDoc
*/
protected $className = 'wcf\data\conversation\label\ConversationLabel';
/**
- * @see \wcf\system\importer\IImporter::import()
+ * @inheritDoc
*/
public function import($oldID, array $data, array $additionalData = []) {
$data['userID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['userID']);
*/
class ConversationMessageImporter extends AbstractImporter {
/**
- * @see \wcf\system\importer\AbstractImporter::$className
+ * @inheritDoc
*/
protected $className = 'wcf\data\conversation\message\ConversationMessage';
/**
- * @see \wcf\system\importer\IImporter::import()
+ * @inheritDoc
*/
public function import($oldID, array $data, array $additionalData = []) {
$data['conversationID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.conversation', $data['conversationID']);
*/
class ConversationUserImporter extends AbstractImporter {
/**
- * @see \wcf\system\importer\IImporter::import()
+ * @inheritDoc
*/
public function import($oldID, array $data, array $additionalData = []) {
$data['conversationID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.conversation', $data['conversationID']);
*/
class ConversationMessageQuoteHandler extends AbstractMessageQuoteHandler {
/**
- * @see \wcf\system\message\quote\AbstractMessageQuoteHandler::getMessages()
+ * @inheritDoc
*/
protected function getMessages(array $data) {
// read messages
*/
class ConversationMessageModerationQueueReportHandler extends AbstractModerationQueueHandler implements IModerationQueueReportHandler {
/**
- * @see \wcf\system\moderation\queue\AbstractModerationQueueHandler::$className
+ * @inheritDoc
*/
protected $className = 'wcf\data\conversation\message\ConversationMessage';
/**
- * @see \wcf\system\moderation\queue\AbstractModerationQueueHandler::$definitionName
+ * @inheritDoc
*/
protected $definitionName = 'com.woltlab.wcf.moderation.report';
/**
- * @see \wcf\system\moderation\queue\AbstractModerationQueueHandler::$objectType
+ * @inheritDoc
*/
protected $objectType = 'com.woltlab.wcf.conversation.message';
protected static $messages = [];
/**
- * @see \wcf\system\moderation\queue\AbstractModerationQueueHandler::$requiredPermission
+ * @inheritDoc
*/
protected $requiredPermission = 'mod.conversation.canModerateConversation';
/**
- * @see \wcf\system\moderation\queue\IModerationQueueHandler::assignQueues()
+ * @inheritDoc
*/
public function assignQueues(array $queues) {
$assignments = [];
}
/**
- * @see \wcf\system\moderation\queue\report\IModerationQueueReportHandler::canReport()
+ * @inheritDoc
*/
public function canReport($objectID) {
if (!$this->isValid($objectID)) {
}
/**
- * @see \wcf\system\moderation\queue\IModerationQueueHandler::getContainerID()
+ * @inheritDoc
*/
public function getContainerID($objectID) {
return 0;
}
/**
- * @see \wcf\system\moderation\queue\report\IModerationQueueReportHandler::getReportedContent()
+ * @inheritDoc
*/
public function getReportedContent(ViewableModerationQueue $queue) {
WCF::getTPL()->assign([
}
/**
- * @see \wcf\system\moderation\queue\report\IModerationQueueReportHandler::getReportedObject()
+ * @inheritDoc
*/
public function getReportedObject($objectID) {
if ($this->isValid($objectID)) {
}
/**
- * @see \wcf\system\moderation\queue\IModerationQueueHandler::isValid()
+ * @inheritDoc
*/
public function isValid($objectID) {
if ($this->getMessage($objectID) === null) {
}
/**
- * @see \wcf\system\moderation\queue\IModerationQueueHandler::populate()
+ * @inheritDoc
*/
public function populate(array $queues) {
$objectIDs = [];
}
/**
- * @see \wcf\system\moderation\queue\IModerationQueueHandler::removeContent()
+ * @inheritDoc
*/
public function removeContent(ModerationQueue $queue, $message) {
if ($this->isValid($queue->objectID)) {
public $messageCache = [];
/**
- * @see \wcf\system\search\ISearchableObjectType::cacheObjects()
+ * @inheritDoc
*/
public function cacheObjects(array $objectIDs, array $additionalData = null) {
$messageList = new SearchResultConversationMessageList();
}
/**
- * @see \wcf\system\search\ISearchableObjectType::getAdditionalData()
+ * @inheritDoc
*/
public function getAdditionalData() {
return [
}
/**
- * @see \wcf\system\search\ISearchableObjectType::getObject()
+ * @inheritDoc
*/
public function getObject($objectID) {
if (isset($this->messageCache[$objectID])) return $this->messageCache[$objectID];
}
/**
- * @see \wcf\system\search\ISearchableObjectType::getJoins()
+ * @inheritDoc
*/
public function getJoins() {
return "JOIN wcf".WCF_N."_conversation_to_user conversation_to_user ON (conversation_to_user.participantID = ".WCF::getUser()->userID." AND conversation_to_user.conversationID = ".$this->getTableName().".conversationID)
}
/**
- * @see \wcf\system\search\ISearchableObjectType::getTableName()
+ * @inheritDoc
*/
public function getTableName() {
return 'wcf'.WCF_N.'_conversation_message';
}
/**
- * @see \wcf\system\search\ISearchableObjectType::getIDFieldName()
+ * @inheritDoc
*/
public function getIDFieldName() {
return $this->getTableName().'.messageID';
}
/**
- * @see \wcf\system\search\ISearchableObjectType::getSubjectFieldName()
+ * @inheritDoc
*/
public function getSubjectFieldName() {
return 'conversation.subject';
}
/**
- * @see \wcf\system\search\ISearchableObjectType::getConditions()
+ * @inheritDoc
*/
public function getConditions(IForm $form = null) {
$conditionBuilder = new PreparedStatementConditionBuilder();
}
/**
- * @see \wcf\system\search\ISearchableObjectType::isAccessible()
+ * @inheritDoc
*/
public function isAccessible() {
return (WCF::getUser()->userID ? true : false);
}
/**
- * @see \wcf\system\search\ISearchableObjectType::getFormTemplateName()
+ * @inheritDoc
*/
public function getFormTemplateName() {
if ($this->conversation) {
}
/**
- * @see \wcf\system\search\ISearchableObjectType::show()
+ * @inheritDoc
*/
public function show(IForm $form = null) {
// get existing values
*/
class ConversationMessageStatDailyHandler extends AbstractStatDailyHandler {
/**
- * @see \wcf\system\stat\IStatDailyHandler::getData()
+ * @inheritDoc
*/
public function getData($date) {
return [
*/
class ConversationStatDailyHandler extends AbstractStatDailyHandler {
/**
- * @see \wcf\system\stat\IStatDailyHandler::getData()
+ * @inheritDoc
*/
public function getData($date) {
return [
*/
class ConversationMessageUserNotificationEvent extends AbstractUserNotificationEvent {
/**
- * @see \wcf\system\user\notification\event\AbstractUserNotificationEvent::$stackable
+ * @inheritDoc
*/
protected $stackable = true;
/**
- * @see \wcf\system\user\notification\event\IUserNotificationEvent::getMessage()
+ * @inheritDoc
*/
public function getTitle() {
$count = count($this->getAuthors());
}
/**
- * @see \wcf\system\user\notification\event\IUserNotificationEvent::getMessage()
+ * @inheritDoc
*/
public function getMessage() {
$authors = array_values($this->getAuthors());
}
/**
- * @see \wcf\system\user\notification\event\IUserNotificationEvent::getEmailMessage()
+ * @inheritDoc
*/
public function getEmailMessage($notificationType = 'instant') {
return $this->getLanguage()->getDynamicVariable('wcf.user.notification.conversation.message.mail', [
}
/**
- * @see \wcf\system\user\notification\event\IUserNotificationEvent::getLink()
+ * @inheritDoc
*/
public function getLink() {
return LinkHandler::getInstance()->getLink('Conversation', [
}
/**
- * @see \wcf\system\user\notification\event\IUserNotificationEvent::getEventHash()
+ * @inheritDoc
*/
public function getEventHash() {
return sha1($this->eventID . '-' . $this->userNotificationObject->conversationID);
}
/**
- * @see \wcf\system\user\notification\event\IUserNotificationEvent::checkAccess()
+ * @inheritDoc
*/
public function checkAccess() {
return $this->userNotificationObject->getConversation()->canRead();
*/
class ConversationUserNotificationEvent extends AbstractUserNotificationEvent {
/**
- * @see \wcf\system\user\notification\event\IUserNotificationEvent::getMessage()
+ * @inheritDoc
*/
public function getTitle() {
return $this->getLanguage()->get('wcf.user.notification.conversation.title');
}
/**
- * @see \wcf\system\user\notification\event\IUserNotificationEvent::getMessage()
+ * @inheritDoc
*/
public function getMessage() {
return $this->getLanguage()->getDynamicVariable('wcf.user.notification.conversation.message', [
}
/**
- * @see \wcf\system\user\notification\event\IUserNotificationEvent::getEmailMessage()
+ * @inheritDoc
*/
public function getEmailMessage($notificationType = 'instant') {
return $this->getLanguage()->getDynamicVariable('wcf.user.notification.conversation.mail', [
}
/**
- * @see \wcf\system\user\notification\event\IUserNotificationEvent::getLink()
+ * @inheritDoc
*/
public function getLink() {
return LinkHandler::getInstance()->getLink('Conversation', ['object' => $this->userNotificationObject]);
}
/**
- * @see \wcf\system\user\notification\event\IUserNotificationEvent::checkAccess()
+ * @inheritDoc
*/
public function checkAccess() {
return $this->userNotificationObject->canRead();
*/
class ConversationMessageNotificationObjectType extends AbstractUserNotificationObjectType {
/**
- * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$decoratorClassName
+ * @inheritDoc
*/
protected static $decoratorClassName = 'wcf\system\user\notification\object\ConversationMessageUserNotificationObject';
/**
- * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$objectClassName
+ * @inheritDoc
*/
protected static $objectClassName = 'wcf\data\conversation\message\ConversationMessage';
/**
- * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$objectListClassName
+ * @inheritDoc
*/
protected static $objectListClassName = 'wcf\data\conversation\message\ConversationMessageList';
}
*/
class ConversationNotificationObjectType extends AbstractUserNotificationObjectType {
/**
- * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$decoratorClassName
+ * @inheritDoc
*/
protected static $decoratorClassName = 'wcf\system\user\notification\object\ConversationUserNotificationObject';
/**
- * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$objectClassName
+ * @inheritDoc
*/
protected static $objectClassName = 'wcf\data\conversation\Conversation';
/**
- * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$objectListClassName
+ * @inheritDoc
*/
protected static $objectListClassName = 'wcf\data\conversation\ConversationList';
/**
- * @see \wcf\system\user\notification\object\type\IUserNotificationObjectType::getObjectsByIDs()
+ * @inheritDoc
*/
public function getObjectsByIDs(array $objectIDs) {
$objects = Conversation::getUserConversations($objectIDs, WCF::getUser()->userID);
*/
class ConversationMessageRebuildDataWorker extends AbstractRebuildDataWorker {
/**
- * @see \wcf\system\worker\AbstractWorker::$limit
+ * @inheritDoc
*/
protected $limit = 500;
/**
- * @see \wcf\system\worker\IWorker::countObjects()
+ * @inheritDoc
*/
public function countObjects() {
if ($this->count === null) {
}
/**
- * @see \wcf\system\worker\AbstractRebuildDataWorker::initObjectList
+ * @inheritDoc
*/
protected function initObjectList() {
$this->objectList = new ConversationMessageList();
}
/**
- * @see \wcf\system\worker\IWorker::execute()
+ * @inheritDoc
*/
public function execute() {
$this->objectList->getConditionBuilder()->add('conversation_message.messageID BETWEEN ? AND ?', [$this->limit * $this->loopCount + 1, $this->limit * $this->loopCount + $this->limit]);
*/
class ConversationRebuildDataWorker extends AbstractRebuildDataWorker {
/**
- * @see \wcf\system\worker\AbstractWorker::$limit
+ * @inheritDoc
*/
protected $limit = 100;
/**
- * @see \wcf\system\worker\IWorker::countObjects()
+ * @inheritDoc
*/
public function countObjects() {
if ($this->count === null) {
}
/**
- * @see \wcf\system\worker\AbstractRebuildDataWorker::initObjectList
+ * @inheritDoc
*/
protected function initObjectList() {
$this->objectList = new ConversationList();
}
/**
- * @see \wcf\system\worker\IWorker::execute()
+ * @inheritDoc
*/
public function execute() {
$this->objectList->getConditionBuilder()->add('conversation.conversationID BETWEEN ? AND ?', [$this->limit * $this->loopCount + 1, $this->limit * $this->loopCount + $this->limit]);