--- /dev/null
+<?php
+namespace wcf\system\stat;
+
+/**
+ * Stat handler implementation for conversation messages.
+ *
+ * @author Marcel Werk
+ * @copyright 2001-2014 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package com.woltlab.wcf.conversation
+ * @subpackage system.stat
+ * @category Community Framework
+ */
+class ConversationMessageStatDailyHandler extends AbstractStatDailyHandler {
+ /**
+ * @see \wcf\system\stat\IStatDailyHandler::getData()
+ */
+ public function getData($date) {
+ return array(
+ 'counter' => $this->getCounter($date, 'wcf'.WCF_N.'_conversation_message', 'time'),
+ 'total' => $this->getTotal($date, 'wcf'.WCF_N.'_conversation_message', 'time')
+ );
+ }
+}
--- /dev/null
+<?php
+namespace wcf\system\stat;
+
+/**
+ * Stat handler implementation for conversations.
+ *
+ * @author Marcel Werk
+ * @copyright 2001-2014 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package com.woltlab.wcf.conversation
+ * @subpackage system.stat
+ * @category Community Framework
+ */
+class ConversationStatDailyHandler extends AbstractStatDailyHandler {
+ /**
+ * @see \wcf\system\stat\IStatDailyHandler::getData()
+ */
+ public function getData($date) {
+ return array(
+ 'counter' => $this->getCounter($date, 'wcf'.WCF_N.'_conversation', 'time'),
+ 'total' => $this->getTotal($date, 'wcf'.WCF_N.'_conversation', 'time')
+ );
+ }
+}
<item name="wcf.acp.rebuildData.com.woltlab.wcf.conversation.message.description"><![CDATA[Aktualisiert den Suchindex für Konversationsnachrichten]]></item>
</category>
+ <category name="wcf.acp.stat">
+ <item name="wcf.acp.stat.com.woltlab.wcf.conversation"><![CDATA[Konversationen]]></item>
+ <item name="wcf.acp.stat.com.woltlab.wcf.conversation.message"><![CDATA[Konversations-Nachrichten]]></item>
+ </category>
+
<category name="wcf.clipboard">
<item name="wcf.clipboard.item.com.woltlab.wcf.conversation.conversation.assignLabel"><![CDATA[Label zuweisen ({#$count})]]></item>
<item name="wcf.clipboard.item.com.woltlab.wcf.conversation.conversation.close"><![CDATA[Schließen ({#$count})]]></item>
<item name="wcf.acp.rebuildData.com.woltlab.wcf.conversation.message.description"><![CDATA[Rebuild search index for conversation messages]]></item>
</category>
+ <category name="wcf.acp.stat">
+ <item name="wcf.acp.stat.com.woltlab.wcf.conversation"><![CDATA[Conversations]]></item>
+ <item name="wcf.acp.stat.com.woltlab.wcf.conversation.message"><![CDATA[Conversation Messages]]></item>
+ </category>
+
<category name="wcf.clipboard">
<item name="wcf.clipboard.item.com.woltlab.wcf.conversation.conversation.assignLabel"><![CDATA[Assign Label ({#$count})]]></item>
<item name="wcf.clipboard.item.com.woltlab.wcf.conversation.conversation.close"><![CDATA[Close ({#$count})]]></item>
<options>module_conversation</options>
</type>
<!-- /pages -->
+
+ <!-- stat handlers -->
+ <type>
+ <name>com.woltlab.wcf.conversation</name>
+ <definitionname>com.woltlab.wcf.statDailyHandler</definitionname>
+ <classname><![CDATA[wcf\system\stat\ConversationStatDailyHandler]]></classname>
+ </type>
+ <type>
+ <name>com.woltlab.wcf.conversation.message</name>
+ <definitionname>com.woltlab.wcf.statDailyHandler</definitionname>
+ <classname><![CDATA[wcf\system\stat\ConversationMessageStatDailyHandler]]></classname>
+ </type>
+ <!-- /stat handlers -->
</import>
</data>