]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
separate classes into files in DirectMessage plugin
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 6 Nov 2015 12:35:45 +0000 (13:35 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 6 Nov 2015 12:35:45 +0000 (13:35 +0100)
plugins/DirectMessage/actions/inbox.php
plugins/DirectMessage/lib/inboxmessagelist.php [new file with mode: 0644]
plugins/DirectMessage/lib/inboxmessagelistitem.php [new file with mode: 0644]

index 1a4de6ccaa12cf269dab4110b1b32b0ecdf83492..b3dc88598bbb980c15a8154003bf1fa9d1353e45 100644 (file)
@@ -102,24 +102,3 @@ class InboxAction extends MailboxAction
         return _('This is your inbox, which lists your incoming private messages.');
     }
 }
-
-class InboxMessageList extends MessageList
-{
-    function newItem($message)
-    {
-        return new InboxMessageListItem($this->out, $message);
-    }
-}
-
-class InboxMessageListItem extends MessageListItem
-{
-    /**
-     * Returns the profile we want to show with the message
-     *
-     * @return Profile The profile that matches the message
-     */
-    function getMessageProfile()
-    {
-        return $this->message->getFrom();
-    }
-}
diff --git a/plugins/DirectMessage/lib/inboxmessagelist.php b/plugins/DirectMessage/lib/inboxmessagelist.php
new file mode 100644 (file)
index 0000000..f24f540
--- /dev/null
@@ -0,0 +1,11 @@
+<?php
+
+if (!defined('GNUSOCIAL')) { exit(1); }
+
+class InboxMessageList extends MessageList
+{
+    function newItem($message)
+    {
+        return new InboxMessageListItem($this->out, $message);
+    }
+}
diff --git a/plugins/DirectMessage/lib/inboxmessagelistitem.php b/plugins/DirectMessage/lib/inboxmessagelistitem.php
new file mode 100644 (file)
index 0000000..929c670
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+
+if (!defined('GNUSOCIAL')) { exit(1); }
+
+class InboxMessageListItem extends MessageListItem
+{
+    /**
+     * Returns the profile we want to show with the message
+     *
+     * @return Profile The profile that matches the message
+     */
+    function getMessageProfile()
+    {
+        return $this->message->getFrom();
+    }
+}