add projet
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Config;
|
||||
|
||||
use App\Models\CiDatabase;
|
||||
|
||||
class Database
|
||||
{
|
||||
public static function connect(): CiDatabase
|
||||
{
|
||||
return CiDatabase::instance();
|
||||
}
|
||||
}
|
||||
Executable
+24
@@ -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();
|
||||
}
|
||||
}
|
||||
Executable
+10
@@ -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
|
||||
}
|
||||
@@ -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'],
|
||||
],
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user