From: Evan Prodromou Date: Wed, 7 Mar 2012 22:06:50 +0000 (-0600) Subject: accessor for NoticeListItem's Notice X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=12921d6b71377fcfada0bf6ccd3d81112dd17fa4;p=quix0rs-gnu-social.git accessor for NoticeListItem's Notice --- diff --git a/lib/noticelistitem.php b/lib/noticelistitem.php index a8506aa46e..ef7fc0d1e6 100644 --- a/lib/noticelistitem.php +++ b/lib/noticelistitem.php @@ -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; + } }