33 lines
703 B
PHP
33 lines
703 B
PHP
<?php
|
|
|
|
namespace App\Services\Settings\SchoolCalendar;
|
|
|
|
use App\Models\Configuration;
|
|
|
|
class SchoolCalendarContextService
|
|
{
|
|
public function defaultSchoolYear(): string
|
|
{
|
|
return trim((string) (Configuration::getConfig('school_year') ?? ''));
|
|
}
|
|
|
|
public function defaultSemester(): string
|
|
{
|
|
return trim((string) (Configuration::getConfig('semester') ?? ''));
|
|
}
|
|
|
|
public function eventTypes(): array
|
|
{
|
|
return [
|
|
'1st Semester Scores',
|
|
'2nd Semester Scores',
|
|
'Break',
|
|
'Event',
|
|
'Final',
|
|
'Final Exam Draft',
|
|
'Midterm',
|
|
'Midterm Exam Draft',
|
|
];
|
|
}
|
|
}
|