* @see NoticeListItem
* @see ProfileNoticeList
*/
-
class NoticeList extends Widget
{
/** the current stream of notices being displayed. */
*
* @param Notice $notice stream of notices from DB_DataObject
*/
-
function __construct($notice, $out=null)
{
parent::__construct($out);
*
* @return int count of notices listed.
*/
-
function show()
{
$this->out->elementStart('div', array('id' =>'notices_primary'));
- $this->out->element('h2', null, _('Notices'));
+ // TRANS: Header in notice list.
+ $this->out->element('h2', null, _m('HEADER','Notices'));
$this->out->elementStart('ol', array('class' => 'notices xoxo'));
$cnt = 0;
*
* @return NoticeListItem a list item for displaying the notice
*/
-
function newListItem($notice)
{
return new NoticeListItem($notice, $this->out);
}
}
-