remove codeigniter

This commit is contained in:
root
2026-06-04 02:41:08 -04:00
parent 4e33882ac7
commit b4e6ac03c5
180 changed files with 457 additions and 2186 deletions
+6 -6
View File
@@ -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