- '$type' => $notification['label'],
- '$header' => $header,
- 'str_notification_type' => DI::l10n()->t('Notification type:'),
- 'str_type' => $notification['notifytype'],
- '$dfrn_text' => $dfrn_text,
- '$dfrn_id' => $notification['dfrn_id'],
- '$uid' => $notification['uid'],
- '$intro_id' => $notification['intro_id'],
- '$contact_id' => $notification['contact_id'],
- '$photo' => $notification['photo'],
- '$fullname' => $notification['name'],
- '$location' => $notification['location'],
- '$lbl_location' => DI::l10n()->t('Location:'),
- '$about' => $notification['about'],
- '$lbl_about' => DI::l10n()->t('About:'),
- '$keywords' => $notification['keywords'],
- '$lbl_keywords' => DI::l10n()->t('Tags:'),
- '$gender' => $notification['gender'],
- '$lbl_gender' => DI::l10n()->t('Gender:'),
- '$hidden' => ['hidden', DI::l10n()->t('Hide this contact from others'), ($notification['hidden'] == 1), ''],
- '$url' => $notification['url'],
- '$zrl' => $notification['zrl'],
- '$lbl_url' => DI::l10n()->t('Profile URL'),
- '$addr' => $notification['addr'],
- '$lbl_knowyou' => $lbl_knowyou,
- '$lbl_network' => DI::l10n()->t('Network:'),
- '$network' => ContactSelector::networkToName($notification['network'], $notification['url']),
- '$knowyou' => $knowyou,
- '$approve' => DI::l10n()->t('Approve'),
- '$note' => $notification['note'],
- '$ignore' => DI::l10n()->t('Ignore'),
- '$discard' => $discard,
- '$action' => $action,
+ '$type' => $notification->getLabel(),
+ '$header' => $header,
+ '$str_notification_type' => DI::l10n()->t('Notification type:'),
+ '$str_type' => $notification->getType(),
+ '$dfrn_text' => $dfrn_text,
+ '$dfrn_id' => $notification->getDfrnId(),
+ '$uid' => $notification->getUid(),
+ '$intro_id' => $notification->getIntroId(),
+ '$contact_id' => $notification->getContactId(),
+ '$photo' => $notification->getPhoto(),
+ '$fullname' => $notification->getName(),
+ '$location' => $notification->getLocation(),
+ '$lbl_location' => DI::l10n()->t('Location:'),
+ '$about' => $notification->getAbout(),
+ '$lbl_about' => DI::l10n()->t('About:'),
+ '$keywords' => $notification->getKeywords(),
+ '$lbl_keywords' => DI::l10n()->t('Tags:'),
+ '$gender' => $notification->getGender(),
+ '$lbl_gender' => DI::l10n()->t('Gender:'),
+ '$hidden' => ['hidden', DI::l10n()->t('Hide this contact from others'), $notification->isHidden(), ''],
+ '$url' => $notification->getUrl(),
+ '$zrl' => $notification->getZrl(),
+ '$lbl_url' => DI::l10n()->t('Profile URL'),
+ '$addr' => $notification->getAddr(),
+ '$lbl_knowyou' => $lbl_knowyou,
+ '$lbl_network' => DI::l10n()->t('Network:'),
+ '$network' => ContactSelector::networkToName($notification->getNetwork(), $notification->getUrl()),
+ '$knowyou' => $knowyou,
+ '$approve' => DI::l10n()->t('Approve'),
+ '$note' => $notification->getNote(),
+ '$ignore' => DI::l10n()->t('Ignore'),
+ '$discard' => $discard,
+ '$action' => $action,