mirror of
https://github.com/friendica/friendica
synced 2025-04-19 11:10:10 +00:00
Rename classes
- Repository/Model Notification => Notify - Factory/Object Notification => Notification
This commit is contained in:
parent
b85511b00d
commit
0840938dff
12 changed files with 45 additions and 45 deletions
|
@ -26,7 +26,7 @@ class Introductions extends BaseNotifications
|
|||
|
||||
$notifications = [
|
||||
'ident' => 'introductions',
|
||||
'notifications' => DI::factNotIntro()->getList($all, self::$firstItemNum, self::ITEMS_PER_PAGE, $id),
|
||||
'notifications' => DI::notificationIntro()->getList($all, self::$firstItemNum, self::ITEMS_PER_PAGE, $id),
|
||||
];
|
||||
|
||||
return [
|
||||
|
|
|
@ -24,7 +24,7 @@ class Notification extends BaseModule
|
|||
// @TODO: Replace with parameter from router
|
||||
if (DI::args()->get(1) === 'mark' && DI::args()->get(2) === 'all') {
|
||||
try {
|
||||
$success = DI::notification()->setAllSeen();
|
||||
$success = DI::notify()->setAllSeen();
|
||||
}catch (\Exception $e) {
|
||||
$success = false;
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ class Notification extends BaseModule
|
|||
// @TODO: Replace with parameter from router
|
||||
if (DI::args()->getArgc() > 2 && DI::args()->get(1) === 'view' && intval(DI::args()->get(2))) {
|
||||
try {
|
||||
$notification = DI::notification()->getByID(DI::args()->get(2));
|
||||
$notification = DI::notify()->getByID(DI::args()->get(2));
|
||||
$notification->setSeen();
|
||||
|
||||
if (!empty($notification->link)) {
|
||||
|
|
|
@ -31,7 +31,7 @@ class Notifications extends BaseNotifications
|
|||
$notificationHeader = DI::l10n()->t('Network Notifications');
|
||||
$notifications = [
|
||||
'ident' => Notification::NETWORK,
|
||||
'notifications' => DI::factNotification()->getNetworkList(self::$showAll, self::$firstItemNum, self::ITEMS_PER_PAGE),
|
||||
'notifications' => DI::notification()->getNetworkList(self::$showAll, self::$firstItemNum, self::ITEMS_PER_PAGE),
|
||||
];
|
||||
|
||||
// Get the system notifications
|
||||
|
@ -39,7 +39,7 @@ class Notifications extends BaseNotifications
|
|||
$notificationHeader = DI::l10n()->t('System Notifications');
|
||||
$notifications = [
|
||||
'ident' => Notification::SYSTEM,
|
||||
'notifications' => DI::factNotification()->getSystemList(self::$showAll, self::$firstItemNum, self::ITEMS_PER_PAGE),
|
||||
'notifications' => DI::notification()->getSystemList(self::$showAll, self::$firstItemNum, self::ITEMS_PER_PAGE),
|
||||
];
|
||||
|
||||
// Get the personal notifications
|
||||
|
@ -47,7 +47,7 @@ class Notifications extends BaseNotifications
|
|||
$notificationHeader = DI::l10n()->t('Personal Notifications');
|
||||
$notifications = [
|
||||
'ident' => Notification::PERSONAL,
|
||||
'notifications' => DI::factNotification()->getPersonalList(self::$showAll, self::$firstItemNum, self::ITEMS_PER_PAGE),
|
||||
'notifications' => DI::notification()->getPersonalList(self::$showAll, self::$firstItemNum, self::ITEMS_PER_PAGE),
|
||||
];
|
||||
|
||||
// Get the home notifications
|
||||
|
@ -55,7 +55,7 @@ class Notifications extends BaseNotifications
|
|||
$notificationHeader = DI::l10n()->t('Home Notifications');
|
||||
$notifications = [
|
||||
'ident' => Notification::HOME,
|
||||
'notifications' => DI::factNotification()->getHomeList(self::$showAll, self::$firstItemNum, self::ITEMS_PER_PAGE),
|
||||
'notifications' => DI::notification()->getHomeList(self::$showAll, self::$firstItemNum, self::ITEMS_PER_PAGE),
|
||||
];
|
||||
// fallback - redirect to main page
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue