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
@@ -9,7 +9,7 @@ use App\Services\Email\EmailDispatchService;
use Illuminate\Support\Facades\DB;
/**
* CodeIgniter {@see \App\Controllers\View\AuthorizedUsersController} parity.
* legacy {@see \App\Controllers\View\AuthorizedUsersController} parity.
*/
class AuthorizedUsersManagementService
{
@@ -26,7 +26,7 @@ class AuthorizedUsersManagementService
}
/**
* CI create() first step — lookup by token after invite email (pending row, created within TTL).
* legacy create() first step — lookup by token after invite email (pending row, created within TTL).
*
* Tokens are stored as SHA-256 hashes; we only ever look up by hash so that
* a leaked database row cannot be replayed as a plaintext token.
@@ -44,7 +44,7 @@ class AuthorizedUsersManagementService
}
/**
* CI setPassword / savePassword — active row with rotating token.
* legacy setPassword / savePassword — active row with rotating token.
*/
public function findActiveSetupRow(int $authorizedUserId, string $plainToken): ?AuthorizedUser
{
@@ -83,7 +83,7 @@ class AuthorizedUsersManagementService
}
/**
* CI `create` — when email is not a registered user, respond success without leaking (privacy).
* legacy `create` — when email is not a registered user, respond success without leaking (privacy).
*
* Refuses self-invites and silently re-uses an existing invite row to avoid
* letting a parent spam another user with confirmation emails.
@@ -385,7 +385,7 @@ class ParentAttendanceReportService
/**
* Staff index: early dismissal rows grouped by date (+ signature metadata per date).
*
* Parity with CodeIgniter {@see \App\Controllers\View\ParentAttendanceReportController::earlyDismissals}.
* Parity with legacy {@see \App\Controllers\View\ParentAttendanceReportController::earlyDismissals}.
*
* @return array{groups: array<string, array<int, array<string, mixed>>>, school_year: string, semester: string, signature_by_date: array<string, array<string, mixed>>}
*/
@@ -467,7 +467,7 @@ class ParentAttendanceReportService
}
/**
* Parity with CodeIgniter {@see \App\Controllers\View\ParentAttendanceReportController::addEarlyDismissalForm}.
* Parity with legacy {@see \App\Controllers\View\ParentAttendanceReportController::addEarlyDismissalForm}.
*
* @return array{students: array<int, array<string, mixed>>, default_date: string, school_year: string, semester: string}
*/
@@ -505,7 +505,7 @@ class ParentAttendanceReportService
}
/**
* Parity with CodeIgniter {@see \App\Controllers\View\ParentAttendanceReportController::saveEarlyDismissal}.
* Parity with legacy {@see \App\Controllers\View\ParentAttendanceReportController::saveEarlyDismissal}.
*/
public function saveStaffEarlyDismissal(int $studentId, string $reportDate, string $dismissTime, string $reason): void
{
@@ -573,7 +573,7 @@ class ParentAttendanceReportService
}
/**
* Parity with CodeIgniter {@see \App\Controllers\View\ParentAttendanceReportController::uploadEarlyDismissalSignature}.
* Parity with legacy {@see \App\Controllers\View\ParentAttendanceReportController::uploadEarlyDismissalSignature}.
* Files live under {@see storage_path('uploads/early_dismissal_signatures')} (same as {@see \App\Http\Controllers\Api\Reports\FilesController::earlyDismissalSignature}).
*/
public function storeEarlyDismissalSignature(
@@ -8,7 +8,7 @@ use Illuminate\Support\Collection;
use Illuminate\Support\Facades\DB;
/**
* CodeIgniter {@see \App\Controllers\ParentProgressController} read-side logic.
* legacy {@see \App\Controllers\ParentProgressController} read-side logic.
*/
class ParentProgressQueryService
{
@@ -17,7 +17,7 @@ class ParentProgressQueryService
) {}
/**
* CI `getParentStudents` — one row per distinct student (latest enrollment ordering).
* legacy `getParentStudents` — one row per distinct student (latest enrollment ordering).
*
* @return list<array<string, mixed>>
*/
@@ -59,7 +59,7 @@ class ParentProgressQueryService
}
/**
* CI `getParentSectionIds`.
* legacy `getParentSectionIds`.
*
* @return list<int>
*/
@@ -119,7 +119,7 @@ class ParentProgressQueryService
}
/**
* CI `groupReportsByWeek` — keys `"{week_start}:{class_section_id}"`.
* legacy `groupReportsByWeek` — keys `"{week_start}:{class_section_id}"`.
*
* @param iterable<int, ClassProgressReport> $rows
* @return array<string, array<string, mixed>>
@@ -166,7 +166,7 @@ class ParentProgressQueryService
}
/**
* Weekly batch for a section/week (CI parent `view`, all subjects).
* Weekly batch for a section/week (legacy parent `view`, all subjects).
*
* @return list<ClassProgressReport>
*/
@@ -9,7 +9,7 @@ use App\Models\User;
use Illuminate\Support\Facades\DB;
/**
* CodeIgniter {@see \App\Controllers\ParentReportCardController} parity (read + acknowledgement).
* legacy {@see \App\Controllers\ParentReportCardController} parity (read + acknowledgement).
*/
class ParentReportCardService
{
@@ -19,7 +19,7 @@ class ParentReportCardService
) {}
/**
* Resolve term from query string with configuration fallbacks (CI index/view).
* Resolve term from query string with configuration fallbacks (legacy index/view).
*
* @return array{0: string, 1: string}
*/
@@ -38,7 +38,7 @@ class ParentReportCardService
}
/**
* CI sign() — current configuration term only (no GET overrides).
* legacy sign() — current configuration term only (no GET overrides).
*
* @return array{0: string, 1: string}
*/
@@ -56,7 +56,7 @@ class ParentReportCardService
}
/**
* CI index() student rows for parent + optional student_class term filters.
* legacy index() student rows for parent + optional student_class term filters.
*
* @return list<array<string, mixed>>
*/
@@ -7,7 +7,7 @@ use Illuminate\Support\Facades\DB;
/**
* Maps the logged-in parent-family account to the primary parent's user id
* (stored on {@see \App\Models\Student::$parent_id}), matching CodeIgniter
* (stored on {@see \App\Models\Student::$parent_id}), matching legacy
* {@see \App\Controllers\ParentReportCardController::resolvePrimaryParentId}.
*/
final class PrimaryParentUserResolver