]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
accessor for NoticeListItem's Notice
authorEvan Prodromou <evan@status.net>
Wed, 7 Mar 2012 22:06:50 +0000 (16:06 -0600)
committerEvan Prodromou <evan@status.net>
Wed, 7 Mar 2012 22:06:50 +0000 (16:06 -0600)
lib/noticelistitem.php

index a8506aa46e077bf271cef69023e7f437b0cc070d..ef7fc0d1e6123c0ea149328ceb7a4e2f80a9a296 100644 (file)
@@ -720,4 +720,17 @@ class NoticeListItem extends Widget
             Event::handle('EndCloseNoticeListItemElement', array($this));
         }
     }
+
+    /**
+     * Get the notice in question
+     *
+     * For hooks, etc., this may be useful
+     *
+     * @return Notice The notice we're showing
+     */
+
+    function getNotice()
+    {
+        return $this->notice;
+    }
 }