-
-/**
- * Placeholder for showing faves...
- */
-class ThreadedNoticeListRepeatsItem extends NoticeListActorsItem
-{
- function getProfiles()
- {
- $rep = $this->notice->repeatStream();
-
- $profiles = array();
- while ($rep->fetch()) {
- $profiles[] = $rep->profile_id;
- }
- return $profiles;
- }
-
- function getListMessage($count, $you)
- {
- if ($count == 1 && $you) {
- // darn first person being different from third person!
- // TRANS: List message for notice repeated by logged in user.
- return _m('REPEATLIST', 'You have repeated this notice.');
- } else {
- // TRANS: List message for repeated notices.
- // TRANS: %d is the number of users that have repeated a notice.
- return sprintf(_m('One person has repeated this notice.',
- '%d people have repeated this notice.',
- $count),
- $count);
- }
- }
-
- function showStart()
- {
- $this->out->elementStart('li', array('class' => 'notice-data notice-repeats'));
- }
-
- function showEnd()
- {
- $this->out->elementEnd('li');
- }
-}