From 12921d6b71377fcfada0bf6ccd3d81112dd17fa4 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 7 Mar 2012 16:06:50 -0600 Subject: [PATCH] accessor for NoticeListItem's Notice --- lib/noticelistitem.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; + } } -- 2.39.5