remove codeigniter
This commit is contained in:
@@ -4,7 +4,7 @@ namespace App\Services\ClassProgress;
|
||||
|
||||
class ClassProgressRuleService
|
||||
{
|
||||
/** CI `ClassProgressController::CUSTOM_UNIT_ROW_LABEL` — must match teacher form JS. */
|
||||
/** legacy `ClassProgressController::CUSTOM_UNIT_ROW_LABEL` — must match teacher form JS. */
|
||||
public const CUSTOM_UNIT_ROW_LABEL = 'Custom';
|
||||
|
||||
public function defaultStatus(): string
|
||||
@@ -19,7 +19,7 @@ class ClassProgressRuleService
|
||||
}
|
||||
|
||||
/**
|
||||
* CI `buildUnitChapterSummary` — Custom / typed chapter rows preserved.
|
||||
* legacy `buildUnitChapterSummary` — Custom / typed chapter rows preserved.
|
||||
*
|
||||
* @param array<int|string, mixed> $unitValues
|
||||
* @param array<int|string, mixed> $chapterValues
|
||||
@@ -56,7 +56,7 @@ class ClassProgressRuleService
|
||||
return mb_strlen($summary) > 120 ? mb_substr($summary, 0, 120) : $summary;
|
||||
}
|
||||
|
||||
/** CI `hasIslamicUnitSelection`. */
|
||||
/** legacy `hasIslamicUnitSelection`. */
|
||||
public function hasIslamicUnitSelection(array $payload): bool
|
||||
{
|
||||
$unitValues = array_map('trim', (array) ($payload['unit_islamic'] ?? []));
|
||||
@@ -92,7 +92,7 @@ class ClassProgressRuleService
|
||||
}
|
||||
|
||||
/**
|
||||
* CI `parseUnitChapterSummary` — inverse of {@see buildUnitChapterSummary()} for edit forms.
|
||||
* legacy `parseUnitChapterSummary` — inverse of {@see buildUnitChapterSummary()} for edit forms.
|
||||
*
|
||||
* @return array{units: list<string>, chapters: list<string>}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user