add projet

This commit is contained in:
root
2026-03-05 12:29:37 -05:00
parent 8d1eef8ba8
commit 23b7db1107
9109 changed files with 1106501 additions and 73 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
namespace Config;
use App\Models\CiDatabase;
class Database
{
public static function connect(): CiDatabase
{
return CiDatabase::instance();
}
}
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace Config;
use App\Services\EmailService;
use App\Services\SemesterScoreService;
class Services
{
public static function email(): EmailService
{
return new EmailService();
}
public static function emailService(): EmailService
{
return static::email();
}
public static function semesterScoreService(): SemesterScoreService
{
return new SemesterScoreService();
}
}
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace App\Config;
class SessionTimeout
{
public const TIMEOUT_DURATION = 1200; // 20 minutes
public const WARNING_THRESHOLD = 900; // 15 minutes
public const CHECK_INTERVAL = 60; // 1 minute
}
+33
View File
@@ -0,0 +1,33 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Progress Report Status Labels
|--------------------------------------------------------------------------
*/
'status_options' => [
// Keep these aligned with your existing values in DB
'draft' => 'Draft',
'submitted' => 'Submitted',
'reviewed' => 'Reviewed',
'approved' => 'Approved',
'rejected' => 'Rejected',
],
/*
|--------------------------------------------------------------------------
| Subject Sections Mapping
|--------------------------------------------------------------------------
| Replace with your exact CI ClassProgressController::SUBJECT_SECTIONS values
|--------------------------------------------------------------------------
*/
'subject_sections' => [
// Example placeholders only:
// 'quran' => ['Memorization', 'Reading', 'Tajweed'],
// 'islamic_studies' => ['Aqeedah', 'Fiqh', 'Seerah'],
// 'arabic' => ['Reading', 'Writing', 'Vocabulary'],
],
];