remove codeigniter
This commit is contained in:
@@ -9,7 +9,7 @@ class Notification extends BaseModel
|
||||
{
|
||||
protected $table = 'notifications';
|
||||
|
||||
// ✅ CI: soft deletes + timestamps
|
||||
// ✅ legacy: soft deletes + timestamps
|
||||
use SoftDeletes;
|
||||
public $timestamps = true;
|
||||
|
||||
@@ -35,7 +35,7 @@ class Notification extends BaseModel
|
||||
];
|
||||
|
||||
/**
|
||||
* Equivalent of CI getActiveNotifications()
|
||||
* Equivalent of legacy getActiveNotifications()
|
||||
* Active = scheduled_at <= now AND (expires_at is null OR expires_at > now)
|
||||
*/
|
||||
public static function getActiveNotifications(?string $targetGroup = null): array
|
||||
@@ -58,7 +58,7 @@ class Notification extends BaseModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Equivalent of CI getDeletedNotifications()
|
||||
* Equivalent of legacy getDeletedNotifications()
|
||||
*/
|
||||
public static function getDeletedNotifications(): array
|
||||
{
|
||||
@@ -69,7 +69,7 @@ class Notification extends BaseModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Equivalent of CI getAllNotificationsWithDeleted()
|
||||
* Equivalent of legacy getAllNotificationsWithDeleted()
|
||||
*/
|
||||
public static function getAllNotificationsWithDeleted(): array
|
||||
{
|
||||
@@ -80,7 +80,7 @@ class Notification extends BaseModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Equivalent of CI restoreNotification()
|
||||
* Equivalent of legacy restoreNotification()
|
||||
*/
|
||||
public static function restoreNotification(int $id): bool
|
||||
{
|
||||
@@ -90,7 +90,7 @@ class Notification extends BaseModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Equivalent of CI deleteExpiredNotifications()
|
||||
* Equivalent of legacy deleteExpiredNotifications()
|
||||
* Soft-deletes rows with expires_at < now (and expires_at not null)
|
||||
*/
|
||||
public static function deleteExpiredNotifications(): int
|
||||
|
||||
Reference in New Issue
Block a user